Package com.tom_roush.pdfbox.filter
Class Filter
- java.lang.Object
-
- com.tom_roush.pdfbox.filter.Filter
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFilter()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DecodeResultdecode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index)Decodes data, producing the original non-encoded data.protected abstract voidencode(InputStream input, OutputStream encoded, COSDictionary parameters)voidencode(InputStream input, OutputStream encoded, COSDictionary parameters, int index)Encodes data.protected static COSDictionarygetDecodeParams(COSDictionary dictionary, int index)
-
-
-
Method Detail
-
decode
public abstract DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException
Decodes data, producing the original non-encoded data.- Parameters:
encoded- the encoded byte streamdecoded- the stream where decoded data will be writtenparameters- the parameters used for decodingindex- the index to the filter being decoded- Returns:
- repaired parameters dictionary, or the original parameters dictionary
- Throws:
IOException- if the stream cannot be decoded
-
encode
public final void encode(InputStream input, OutputStream encoded, COSDictionary parameters, int index) throws IOException
Encodes data.- Parameters:
input- the byte stream to encodeencoded- the stream where encoded data will be writtenparameters- the parameters used for encodingindex- the index to the filter being encoded- Throws:
IOException- if the stream cannot be encoded
-
encode
protected abstract void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException
- Throws:
IOException
-
getDecodeParams
protected static COSDictionary getDecodeParams(COSDictionary dictionary, int index)
-
-