Class DeltaDecoder

java.lang.Object
org.apache.commons.compress.archivers.sevenz.AbstractCoder
org.apache.commons.compress.archivers.sevenz.DeltaDecoder

final class DeltaDecoder extends AbstractCoder
  • Constructor Details

    • DeltaDecoder

      DeltaDecoder()
  • Method Details

    • decode

      InputStream decode(String archiveName, InputStream in, long uncompressedLength, Coder coder, byte[] password, int maxMemoryLimitInKb) throws IOException
      Description copied from class: AbstractCoder
      Decodes using stream that reads from in using the configured coder and password.
      Specified by:
      decode in class AbstractCoder
      Returns:
      a stream that reads from in using the configured coder and password.
      Throws:
      IOException
    • encode

      OutputStream encode(OutputStream out, Object options) throws IOException
      Description copied from class: AbstractCoder
      Encodes using a stream that writes to out using the given configuration.
      Overrides:
      encode in class AbstractCoder
      Returns:
      a stream that writes to out using the given configuration.
      Throws:
      IOException - Optionally thrown by subclassses.
    • getOptionsAsProperties

      byte[] getOptionsAsProperties(Object options)
      Description copied from class: AbstractCoder
      Gets property bytes to write in a Folder block.
      Overrides:
      getOptionsAsProperties in class AbstractCoder
      Returns:
      property bytes to write in a Folder block.
    • getOptionsFromCoder

      private int getOptionsFromCoder(Coder coder)
    • getOptionsFromCoder

      Object getOptionsFromCoder(Coder coder, InputStream in)
      Description copied from class: AbstractCoder
      Gets configuration options that have been used to create the given InputStream from the given Coder.
      Overrides:
      getOptionsFromCoder in class AbstractCoder
      Returns:
      configuration options that have been used to create the given InputStream from the given Coder