public final class XmlOthers extends Object implements Closeable
others.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 |
XmlOthers.Package
Package writer.
|
| Modifier and Type | Method and Description |
|---|---|
XmlOthers.Package |
addPackage(String name,
String arch,
String checksum)
Add new package.
|
void |
close() |
XmlOthers |
startPackages()
Start packages.
|
public XmlOthers(Path file)
file - Path to write other.xmlpublic XmlOthers startPackages() throws XMLStreamException
XMLStreamException - On errorpublic XmlOthers.Package addPackage(String name, String arch, String checksum) throws XMLStreamException
name - Package namearch - Package archchecksum - Package checksumXMLStreamException - On errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019–2020 jcabi.com. All rights reserved.