final class CCITTFaxDecoderStream
extends java.io.FilterInputStream
Modifier and Type | Class and Description |
---|---|
private static class |
CCITTFaxDecoderStream.Node |
private static class |
CCITTFaxDecoderStream.Tree |
Modifier and Type | Field and Description |
---|---|
(package private) static short[][] |
BLACK_CODES |
(package private) static short[][] |
BLACK_RUN_LENGTHS |
(package private) static CCITTFaxDecoderStream.Tree |
blackRunTree |
(package private) int |
buffer |
(package private) int |
bufferPos |
private int[] |
changesCurrentRow |
private int |
changesCurrentRowCount |
private int[] |
changesReferenceRow |
private int |
changesReferenceRowCount |
(package private) static CCITTFaxDecoderStream.Tree |
codeTree |
private int |
columns |
private int |
decodedLength |
private int |
decodedPos |
private byte[] |
decodedRow |
(package private) static CCITTFaxDecoderStream.Node |
EOL |
(package private) static CCITTFaxDecoderStream.Tree |
eolOnlyTree |
(package private) static CCITTFaxDecoderStream.Node |
FILL |
private int |
fillOrder |
private int |
lastChangingElement |
private boolean |
optionByteAligned |
private boolean |
optionG32D |
private boolean |
optionG3Fill |
private boolean |
optionUncompressed |
private int |
type |
(package private) static int |
VALUE_EOL |
(package private) static int |
VALUE_FILL |
(package private) static int |
VALUE_HMODE |
(package private) static int |
VALUE_PASSMODE |
static short[][] |
WHITE_CODES |
static short[][] |
WHITE_RUN_LENGTHS |
(package private) static CCITTFaxDecoderStream.Tree |
whiteRunTree |
Constructor and Description |
---|
CCITTFaxDecoderStream(java.io.InputStream stream,
int columns,
int type,
int fillOrder,
long options) |
Modifier and Type | Method and Description |
---|---|
private void |
decode1D() |
private void |
decode2D() |
private void |
decodeRow() |
private void |
decodeRowType2() |
private void |
decodeRowType4() |
private void |
decodeRowType6() |
private int |
decodeRun(CCITTFaxDecoderStream.Tree tree) |
private void |
fetch() |
private int |
getNextChangingElement(int a0,
boolean white) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private boolean |
readBit() |
void |
reset() |
private void |
resetBuffer() |
long |
skip(long n) |
private final int columns
private final byte[] decodedRow
private int decodedLength
private int decodedPos
private final int fillOrder
private final int type
private int[] changesReferenceRow
private int[] changesCurrentRow
private int changesReferenceRowCount
private int changesCurrentRowCount
private int lastChangingElement
private boolean optionG32D
private boolean optionG3Fill
private boolean optionUncompressed
private boolean optionByteAligned
int buffer
int bufferPos
static final short[][] BLACK_CODES
static final short[][] BLACK_RUN_LENGTHS
public static final short[][] WHITE_CODES
public static final short[][] WHITE_RUN_LENGTHS
static final CCITTFaxDecoderStream.Node EOL
static final CCITTFaxDecoderStream.Node FILL
static final CCITTFaxDecoderStream.Tree blackRunTree
static final CCITTFaxDecoderStream.Tree whiteRunTree
static final CCITTFaxDecoderStream.Tree eolOnlyTree
static final CCITTFaxDecoderStream.Tree codeTree
static final int VALUE_EOL
static final int VALUE_FILL
static final int VALUE_PASSMODE
static final int VALUE_HMODE
CCITTFaxDecoderStream(java.io.InputStream stream, int columns, int type, int fillOrder, long options)
private void fetch() throws java.io.IOException
java.io.IOException
private void decode1D() throws java.io.IOException
java.io.IOException
private void decode2D() throws java.io.IOException
java.io.IOException
private int getNextChangingElement(int a0, boolean white)
private void decodeRowType2() throws java.io.IOException
java.io.IOException
private void decodeRowType4() throws java.io.IOException
java.io.IOException
private void decodeRowType6() throws java.io.IOException
java.io.IOException
private void decodeRow() throws java.io.IOException
java.io.IOException
private int decodeRun(CCITTFaxDecoderStream.Tree tree) throws java.io.IOException
java.io.IOException
private void resetBuffer()
private boolean readBit() throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException