| Modifier and Type | Class and Description |
|---|---|
| private static class | Predictor.
Output stream that implements predictor decoding. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static void | decodePredictorRow(int
Predictor value for the current line predictor, int Number of color components, from decode parameters. colors, int Number of bits per components, from decode parameters. bitsPerComponent, int Number samples in a row, from decode parameters. columns, byte[] Current (active) line to decode. Data will be decoded in-place,
i.e. - the contents of this buffer will be modified. actline, byte[] The previous decoded line. When decoding the first line, this
parameter should be an empty byte array of the same length as
lastline)actline.Decodes a single line of data in-place. |
| pack-priv static int | |
| pack-priv static OutputStream | Returns: AnOutputStream is returned, which will write decoded data
into the given stream. If no predictor is specified, the original stream is returned.The stream to which decoded data should be written out, COSDictionary Decode parameters for the stream decodeParams)Wraps and |
| Predictor | back to summary |
|---|---|
| private Predictor() | |
| calcSetBitSeq | back to summary |
|---|---|
| pack-priv static int calcSetBitSeq(int by, int startBit, int bitSize, int val) | |
| calculateRowLength | back to summary |
|---|---|
| pack-priv static int calculateRowLength(int colors, int bitsPerComponent, int columns) | |
| decodePredictorRow | back to summary |
|---|---|
| pack-priv static void decodePredictorRow(int predictor, int colors, int bitsPerComponent, int columns, byte[] actline, byte[] lastline) Decodes a single line of data in-place.
| |
| getBitSeq | back to summary |
|---|---|
| pack-priv static int getBitSeq(int by, int startBit, int bitSize) | |
| wrapPredictor | back to summary |
|---|---|
| pack-priv static OutputStream wrapPredictor(OutputStream out, COSDictionary decodeParams) Wraps and
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private byte[] | |
| private int | |
| private byte[] | |
| private int | |
| private final boolean | |
| private boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | PredictorOutputStream(OutputStream out, int predictor, int colors, int bitsPerComponent, int columns)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | flipRows()
Flips the row buffers (to avoid copying), and resets the current-row index and predictorRead flag |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
| public void | write(byte[]
the data to be written. bytes)Overrides java. Writes |
| public void | write(byte[]
the data. bytes, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| public void | write(int
the i)byte.Overrides java. Writes the specified |
| bitsPerComponent | back to summary |
|---|---|
| private final int bitsPerComponent | |
| colors | back to summary |
|---|---|
| private final int colors | |
| columns | back to summary |
|---|---|
| private final int columns | |
| currentRow | back to summary |
|---|---|
| private byte[] currentRow | |
| currentRowData | back to summary |
|---|---|
| private int currentRowData | |
| lastRow | back to summary |
|---|---|
| private byte[] lastRow | |
| predictor | back to summary |
|---|---|
| private int predictor | |
| predictorPerRow | back to summary |
|---|---|
| private final boolean predictorPerRow | |
| predictorRead | back to summary |
|---|---|
| private boolean predictorRead | |
| rowLength | back to summary |
|---|---|
| private final int rowLength | |
| PredictorOutputStream | back to summary |
|---|---|
| pack-priv PredictorOutputStream(OutputStream out, int predictor, int colors, int bitsPerComponent, int columns) | |
| decodeAndWriteRow | back to summary |
|---|---|
| private void decodeAndWriteRow() throws IOException | |
| flipRows | back to summary |
|---|---|
| private void flipRows() Flips the row buffers (to avoid copying), and resets the current-row index and predictorRead flag | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes to be written out to the stream.
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int off, int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(int i) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |