Class XmlMaid.ByPkgidAttr.Stream

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

public static final class XmlMaid.ByPkgidAttr.Stream extends Object implements XmlMaid
Implementation of XmlMaid that accepts streams and cleans xml by pkgid attribute in package tag. 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