private static final class Predictor.PredictorOutputStream
extends java.io.FilterOutputStream
Modifier and Type | Field and Description |
---|---|
private int |
bitsPerComponent |
private int |
colors |
private int |
columns |
private byte[] |
currentRow |
private int |
currentRowData |
private byte[] |
lastRow |
private int |
predictor |
private boolean |
predictorPerRow |
private boolean |
predictorRead |
private int |
rowLength |
Constructor and Description |
---|
PredictorOutputStream(java.io.OutputStream out,
int predictor,
int colors,
int bitsPerComponent,
int columns) |
Modifier and Type | Method and Description |
---|---|
private void |
decodeAndWriteRow() |
private void |
flipRows()
Flips the row buffers (to avoid copying), and resets the current-row index
and predictorRead flag
|
void |
flush() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(int i) |
private int predictor
private final int colors
private final int bitsPerComponent
private final int columns
private final int rowLength
private final boolean predictorPerRow
private byte[] currentRow
private byte[] lastRow
private int currentRowData
private boolean predictorRead
PredictorOutputStream(java.io.OutputStream out, int predictor, int colors, int bitsPerComponent, int columns)
public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] bytes, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
private void decodeAndWriteRow() throws java.io.IOException
java.io.IOException
private void flipRows()
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
public void write(int i) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException