Class XmlMaid.ByPkgidAttr

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

public static final class XmlMaid.ByPkgidAttr extends Object implements XmlMaid
Cleans xml by pkgid attribute in package tag.
Since:
0.3
  • Constructor Details

    • ByPkgidAttr

      public ByPkgidAttr(Path file)
      Ctor.
      Parameters:
      file - What to clear
  • 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