public final class MetadataFile extends Object implements PackageOutput
PackageOutput,
so it should be used to accept metadata from Package
and it proxies metadata to underlying output. After closing it saves
all metadata to repomd.xml.PackageOutput.FileOutput, PackageOutput.Multiple| Constructor and Description |
|---|
MetadataFile(String type,
PackageOutput.FileOutput output,
XmlRepomd repomd)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Package.Meta meta)
Accept package metadata.
|
void |
close() |
Path |
save(NamingPolicy naming,
Digest digest)
Save metadata to repomd, produce gzipped output.
|
String |
toString() |
public MetadataFile(String type, PackageOutput.FileOutput output, XmlRepomd repomd)
type - Metadata typeoutput - Outputrepomd - Repomd XMLpublic 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 save(NamingPolicy naming, Digest digest) throws IOException
naming - Naming policydigest - DigestIOException - On errorCopyright © 2019–2020 jcabi.com. All rights reserved.