Package com.artipie.rpm.meta
Class XmlPrimaryMaid.Stream
java.lang.Object
com.artipie.rpm.meta.XmlPrimaryMaid.Stream
- All Implemented Interfaces:
XmlMaid
- Enclosing class:
XmlPrimaryMaid
Implementation of
XmlMaid
to clean primary.xml and work with streams.
Input/output streams are not closed in this implementation, resources
should be closed from the outside.- Since:
- 1.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.artipie.rpm.meta.XmlMaid
XmlMaid.ByPkgidAttr
-
Constructor Summary
ConstructorDescriptionStream
(InputStream input, OutputStream out) Ctor.Stream
(InputStream input, OutputStream out, Optional<Collection<PackageInfo>> infos) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionlong
clean
(Collection<String> ids) Cleans xml by ids (checksums) and returns actual package count.
-
Constructor Details
-
Stream
Ctor.- Parameters:
input
- Inputout
- Outputinfos
- Collection with removed packages info if required
-
Stream
Ctor.- Parameters:
input
- Inputout
- Output
-
-
Method Details
-
clean
Description copied from interface:XmlMaid
Cleans xml by ids (checksums) and returns actual package count.- Specified by:
clean
in interfaceXmlMaid
- Parameters:
ids
- Checksums- Returns:
- Packages count
- Throws:
IOException
- When something wrong
-