public final class XmlPrimary extends Object implements Closeable
primary.xml metadata imperative writer.
This object is not thread safe and depends on order of method calls.
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlPrimary.Format
Format package writer.
|
static class |
XmlPrimary.Package
XML package writer.
|
| Constructor and Description |
|---|
XmlPrimary(Path path)
Ctor.
|
XmlPrimary(com.artipie.rpm.meta.XmlFile xml)
Primary ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
XmlPrimary.Package |
startPackage()
Start writing a package.
|
XmlPrimary |
startPackages()
Start packages section.
|
public XmlPrimary(Path path)
path - Path to write primary.xmlpublic XmlPrimary(com.artipie.rpm.meta.XmlFile xml)
xml - Xml filepublic XmlPrimary startPackages() throws XMLStreamException
XMLStreamException - On errorpublic XmlPrimary.Package startPackage() throws XMLStreamException
XMLStreamException - On errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019–2020 jcabi.com. All rights reserved.