Class COSFilterFlateDecode

All Implemented Interfaces:
Closeable, AutoCloseable

public class COSFilterFlateDecode extends ASBufferedInFilter
This class implements Flate decoding.
Author:
Sergey Shemyakov
  • Constructor Details

    • COSFilterFlateDecode

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

    • 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
    • reset

      public void reset() throws IOException
      Overrides:
      reset in class ASBufferedInFilter
      Throws:
      IOException