Class XmlPrimaryMaid.Stream

java.lang.Object
com.artipie.rpm.meta.XmlPrimaryMaid.Stream
All Implemented Interfaces:
XmlMaid
Enclosing class:
XmlPrimaryMaid

public static final class XmlPrimaryMaid.Stream extends Object implements XmlMaid
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
  • Constructor Details

  • Method Details

    • clean

      public long clean(Collection<String> ids) throws IOException
      Description copied from interface: XmlMaid
      Cleans xml by ids (checksums) and returns actual package count.
      Specified by:
      clean in interface XmlMaid
      Parameters:
      ids - Checksums
      Returns:
      Packages count
      Throws:
      IOException - When something wrong