Package com.pd4ml.pdf.cos.filter
Class BrotliDecodeFilter
- java.lang.Object
-
- com.pd4ml.pdf.cos.filter.BrotliDecodeFilter
-
- All Implemented Interfaces:
Filter
public class BrotliDecodeFilter extends java.lang.Object implements Filter
/BrotliDecode: Brotli compression (RFC 7932), the PDF Association's extension for PDF 2.0. Takes the same optional Predictor parameters asFlateDecodeFilter.- Since:
- v4.2.0
-
-
Constructor Summary
Constructors Constructor Description BrotliDecodeFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)Decodesencodedusing this filter's algorithm.static byte[]decompress(byte[] encoded)Decodes a complete Brotli stream.
-
-
-
Method Detail
-
decode
public byte[] decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict) throws java.io.IOExceptionDescription copied from interface:FilterDecodesencodedusing this filter's algorithm.- Specified by:
decodein interfaceFilter- Parameters:
encoded- the filtered bytes, as stored in the fileparameters- this filter'sDecodeParmsdictionary (nevernull; empty if the stream had none)streamDict- the owning stream's full dictionary, in case a filter needs sibling entries (unused by the filters implemented here, but kept for extensibility/parity with PDFBox's Filter API)- Throws:
java.io.IOException
-
decompress
public static byte[] decompress(byte[] encoded) throws java.io.IOExceptionDecodes a complete Brotli stream.- Throws:
java.io.IOException
-
-