Package com.pd4ml.pdf.cos.filter
Interface Filter
-
- All Known Implementing Classes:
ASCII85DecodeFilter,ASCIIHexDecodeFilter,FlateDecodeFilter
public interface FilterA single PDF stream filter (the algorithms named by/Filterentries, e.g.FlateDecode). Implementations only need to support decoding; this package is a reader, not a PDF writer/optimizer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)Decodesencodedusing this filter's algorithm.
-
-
-
Method Detail
-
decode
byte[] decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict) throws java.io.IOException, COSExceptionDecodesencodedusing this filter's algorithm.- 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.IOExceptionCOSException
-
-