public final class XmlFilelists extends Object implements Closeable
filelists.xml metadata file imperative writer.
This object is not thread safe and depends on order of method calls.
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlFilelists.Package
Package writer.
|
| Constructor and Description |
|---|
XmlFilelists(Path file)
Ctor.
|
XmlFilelists(com.artipie.rpm.meta.XmlFile xml)
Primary ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
XmlFilelists.Package |
startPackage(String name,
String arch,
String checksum)
Start new package.
|
XmlFilelists |
startPackages()
Starts processing of RPMs.
|
public XmlFilelists(Path file)
file - Path to write filelists.xmlpublic XmlFilelists(com.artipie.rpm.meta.XmlFile xml)
xml - XML filepublic XmlFilelists startPackages() throws XMLStreamException
XMLStreamException - when XML generation causes errorpublic XmlFilelists.Package startPackage(String name, String arch, String checksum) throws XMLStreamException
name - Package namearch - Package archchecksum - Package checksumXMLStreamException - On XML errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019–2020 jcabi.com. All rights reserved.