Class Coders.DeflateDecoder

  • Enclosing class:
    Coders

    static class Coders.DeflateDecoder
    extends CoderBase
    • Field Detail

      • ONE_ZERO_BYTE

        private static final byte[] ONE_ZERO_BYTE
    • Constructor Detail

      • DeflateDecoder

        DeflateDecoder()
    • Method Detail

      • decode

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

        java.io.OutputStream encode​(java.io.OutputStream out,
                                    java.lang.Object options)
        Overrides:
        encode in class CoderBase
        Returns:
        a stream that writes to out using the given configuration.