public final class XmlRepomd extends Object implements Closeable
repomd.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 |
XmlRepomd.Data
Repomd
data updater. |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(long timestamp)
Begin repomd.
|
XmlRepomd.Data |
beginData(String type)
Start repomd data.
|
void |
close() |
Path |
file()
Repomd file.
|
public XmlRepomd(Path path)
path - Temporary file pathpublic void begin(long timestamp)
throws XMLStreamException
timestamp - Current timestamp in seconds unix time.XMLStreamException - On errorpublic XmlRepomd.Data beginData(String type) throws XMLStreamException
type - Data typeXMLStreamException - On errorpublic Path file()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019–2020 jcabi.com. All rights reserved.