public static final class XmlRepomd.Data extends Object implements Closeable
data updater.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
gzipChecksum(Checksum checksum)
Add checksum.
|
void |
gzipSize(long size)
Add gzip file size.
|
void |
location(String href)
Add location.
|
void |
openChecksum(Checksum checksum)
Add open-checksum.
|
void |
openSize(long size)
Add open file size.
|
void |
timestamp(long sec)
Add a timestamp.
|
public void gzipChecksum(Checksum checksum) throws XMLStreamException, IOException
checksum - ChecksumXMLStreamException - On errorIOException - On checksum errorpublic void openChecksum(Checksum checksum) throws XMLStreamException, IOException
checksum - ChecksumXMLStreamException - On errorIOException - On checksum errorpublic void location(String href) throws XMLStreamException
href - Location hrefXMLStreamException - On errorpublic void timestamp(long sec)
throws XMLStreamException
sec - Timestamp in seconds unix timeXMLStreamException - On errorpublic void gzipSize(long size)
throws XMLStreamException
size - Size in bytesXMLStreamException - On errorpublic void openSize(long size)
throws XMLStreamException
size - Size in bytesXMLStreamException - On errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019–2020 jcabi.com. All rights reserved.