Class XmlAlter.Stream

java.lang.Object
com.artipie.rpm.meta.XmlAlter.Stream
All Implemented Interfaces:
XmlAlter
Enclosing interface:
XmlAlter

public static final class XmlAlter.Stream extends Object implements XmlAlter
Implementation of XmlAlter that works with streams, it reads data from provided InputStream, alters tag attribute and writes result into OutputStream.
Since:
1.4
  • Constructor Details

    • Stream

      public Stream(InputStream input, OutputStream out)
      Ctor.
      Parameters:
      input - Input to read data from
      out - Where to write the result
  • Method Details

    • pkgAttr

      public void pkgAttr(String tag, String value)
      Description copied from interface: XmlAlter
      Updates `packages` attribute of the given tag with specified value.
      Specified by:
      pkgAttr in interface XmlAlter
      Parameters:
      tag - Tag to change
      value - Value for the attribute