|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pdfview.decode.Predictor
public abstract class Predictor
The abstract superclass of various predictor objects that undo well-known prediction algorithms.
Field Summary | |
---|---|
static int |
PNG
|
static int |
TIFF
well known algorithms |
Constructor Summary | |
---|---|
protected |
Predictor(int algorithm)
Create an instance of a predictor. |
Method Summary | |
---|---|
int |
getAlgorithm()
Get the algorithm in use |
int |
getBitsPerComponent()
Get the number of bits per color component |
int |
getColors()
Get the number of colors per sample |
int |
getColumns()
Get the number of columns |
static Predictor |
getPredictor(PDFObject params)
Get an instance of a predictor |
void |
setBitsPerComponent(int bpc)
Set the number of bits per color component |
protected void |
setColors(int colors)
Set the number of colors per sample |
void |
setColumns(int columns)
Set the number of columns |
abstract java.nio.ByteBuffer |
unpredict(java.nio.ByteBuffer imageData)
Actually perform this algorithm on decoded image data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TIFF
public static final int PNG
Constructor Detail |
---|
protected Predictor(int algorithm)
getPredictor()
instead of this.
Method Detail |
---|
public abstract java.nio.ByteBuffer unpredict(java.nio.ByteBuffer imageData) throws java.io.IOException
java.io.IOException
public static Predictor getPredictor(PDFObject params) throws java.io.IOException
params
- the filter parameters
java.io.IOException
public int getAlgorithm()
public int getColors()
protected void setColors(int colors)
public int getBitsPerComponent()
public void setBitsPerComponent(int bpc)
public int getColumns()
public void setColumns(int columns)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |