public final class PrimaryOutput extends Object implements PackageOutput.FileOutput
primary metadata.PackageOutput.FileOutput.FakePackageOutput.FileOutput, PackageOutput.Multiple| Constructor and Description |
|---|
PrimaryOutput(Path file)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Package.Meta meta)
Accept package metadata.
|
void |
close() |
Path |
file()
File path.
|
PrimaryOutput |
start()
Starts processing of RPMs.
|
public PrimaryOutput(Path file)
file - Path to write primary.xmlpublic PrimaryOutput start() throws IOException
IOException - On errorspublic void accept(Package.Meta meta) throws IOException
PackageOutputaccept in interface PackageOutputmeta - MetadataIOException - On errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Path file()
PackageOutput.FileOutputfile in interface PackageOutput.FileOutputCopyright © 2019–2020 jcabi.com. All rights reserved.