Class FlateDecode

java.lang.Object
org.loboevolution.pdfview.decode.FlateDecode

public class FlateDecode extends Object
decode a deFlated byte array

Author Mike Wessler

  • Constructor Details

    • FlateDecode

      public FlateDecode()
  • Method Details

    • decode

      public static ByteBuffer decode(PDFObject dict, ByteBuffer buf, PDFObject params) throws IOException
      decode a byte buffer in Flate format.

      Flate is a built-in Java algorithm. It's part of the java.util.zip package.

      Parameters:
      dict - a PDFObject object.
      buf - the deflated input buffer
      params - parameters to the decoder (unused)
      Returns:
      the decoded (inflated) bytes
      Throws:
      IOException - if any.