Class COSFilterFlateDecode

    • Constructor Detail

      • COSFilterFlateDecode

        public COSFilterFlateDecode​(ASInputStream stream)
                             throws IOException
        Constructor from Flate encoded stream.
        Parameters:
        stream - is Flate encoded stream.
        Throws:
        IOException
    • Method Detail

      • read

        public int read​(byte[] buffer,
                        int size)
                 throws IOException
        Decodes flate compressed data from stream and reads up to size bytes of decompressed data into given array.
        Overrides:
        read in class ASBufferedInFilter
        Parameters:
        buffer - is array into which data will be decompressed.
        size - is maximal amount of decompressed bytes.
        Returns:
        amount of actually read bytes.
        Throws:
        IOException
      • readByByte

        public int readByByte​(byte[] buffer,
                              int startOffset,
                              int size)
                       throws IOException
        Throws:
        IOException