Top Description Fields Constructors Methods
org.apache.pdfbox.filter

pack-priv final Class CCITTFaxFilter

extends Filter
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, .PushbackInputStream, org.apache.pdfbox.cos.COSDictionary, .COSName, org.apache.pdfbox.io.IOUtils

Decodes image data that has been encoded using either Group 3 or Group 4 CCITT facsimile (fax) encoding, and encodes image data to Group 4.
Authors
Ben Litchfield, Marcel Kammer, Paul King

Field Summary

Inherited from org.apache.pdfbox.filter.Filter:
SYSPROP_DEFLATELEVEL

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public DecodeResult
decode(InputStream
the encoded byte stream
encoded
,
OutputStream
the stream where decoded data will be written
decoded
,
COSDictionary
the parameters used for decoding
parameters
,
int
the index to the filter being decoded
index
)

Implements abstract org.apache.pdfbox.filter.Filter.decode.

Decodes data, producing the original non-encoded data.

protected void
private void
invertBitmap(byte[] bufferData)

pack-priv void
readFromDecoderStream(CCITTFaxDecoderStream decoderStream, byte[] result)

Inherited from org.apache.pdfbox.filter.Filter:
decodedecodeencodefindImageReaderfindRasterReadergetCompressionLevelgetDecodeParams

Constructor Detail

CCITTFaxFilterback to summary
pack-priv CCITTFaxFilter()

Method Detail

decodeback to summary
public DecodeResult decode(InputStream encoded, OutputStream decoded, COSDictionary parameters, int index) throws IOException

Implements abstract org.apache.pdfbox.filter.Filter.decode.

Doc from org.apache.pdfbox.filter.Filter.decode.

Decodes data, producing the original non-encoded data.

Parameters
encoded:InputStream

the encoded byte stream

decoded:OutputStream

the stream where decoded data will be written

parameters:COSDictionary

the parameters used for decoding

index:int

the index to the filter being decoded

Returns:DecodeResult

repaired parameters dictionary, or the original parameters dictionary

Annotations
@Override
Exceptions
IOException:
if the stream cannot be decoded
encodeback to summary
protected void encode(InputStream input, OutputStream encoded, COSDictionary parameters) throws IOException

Implements abstract org.apache.pdfbox.filter.Filter.encode.

Annotations
@Override
invertBitmapback to summary
private void invertBitmap(byte[] bufferData)
readFromDecoderStreamback to summary
pack-priv void readFromDecoderStream(CCITTFaxDecoderStream decoderStream, byte[] result) throws IOException