Package com.artipie.rpm.meta
Class XmlRepomd
java.lang.Object
com.artipie.rpm.meta.XmlRepomd
- All Implemented Interfaces:
Closeable
,AutoCloseable
XML
repomd.xml
metadata imperative writer.
This object is not thread safe and depends on order of method calls.
- Since:
- 0.6
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
XmlRepomd
Ctor.- Parameters:
path
- Repomd path
-
XmlRepomd
Ctor.- Parameters:
out
- Repomd output stream
-
XmlRepomd
Ctor.- Parameters:
path
- Repomd pathxml
- Xml writer
-
-
Method Details
-
begin
public void begin(long timestamp) Begin repomd.- Parameters:
timestamp
- Current timestamp in seconds unix time.
-
beginData
Start repomd data.- Parameters:
type
- Data type- Returns:
- Data writer
- Throws:
XMLStreamException
- On error
-
file
Repomd file.- Returns:
- File path
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-