|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultFileFormat
cz.cuni.jagrlib.DefaultRasterFileFormat
cz.cuni.jagrlib.piece.CompressedFormatGray
public class CompressedFormatGray
Gray file format (using predictor, VLC and dynamic arithmetic coder).
Field Summary | |
---|---|
static int |
MAGIC
16-bit magic number (used at the file beginning). |
static RegPiece |
reg
Static registration instance for this class. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
Fields inherited from class cz.cuni.jagrlib.DefaultRasterFileFormat |
---|
CATEGORY |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.DataFileFormat |
---|
DOUBLE_STREAM |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
CompressedFormatGray()
|
Method Summary | |
---|---|
protected void |
commonLoad(BitStream stream,
RasterGraphics g)
Common load code. |
protected void |
commonSave(BitStream stream,
RasterGraphics g)
Common save code. |
java.lang.String[] |
fileNameMasks()
Returns file-name masks associated with the file-format type. |
int |
headerLength()
Length of file-format header (number of bytes which is necessary for file-format matching). |
double |
match(byte[] header,
java.lang.String fileName)
File-format match test. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
Methods inherited from class cz.cuni.jagrlib.DefaultRasterFileFormat |
---|
loadFile, loadFile, saveFile, saveFile |
Methods inherited from class cz.cuni.jagrlib.DefaultFileFormat |
---|
closeFile, init, readFloat, readLine, readParameters, readToken, readUnsigned16, readUnsigned16, readUnsigned32, writeFloat, writeLine, writeParameters, writeUnsigned16, writeUnsigned16, writeUnsigned32 |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Methods inherited from interface cz.cuni.jagrlib.Breakable |
---|
setProgressListener, stop |
Field Detail |
---|
public static final int MAGIC
protected static final java.lang.String TEMPLATE_NAME
public static final RegPiece reg
Constructor Detail |
---|
public CompressedFormatGray()
Method Detail |
---|
protected void commonLoad(BitStream stream, RasterGraphics g) throws java.io.IOException
commonLoad
in class DefaultRasterFileFormat
stream
- Opened input bit-stream.g
- Checked raster-graphics object.
java.io.IOException
protected void commonSave(BitStream stream, RasterGraphics g) throws java.io.IOException
commonSave
in class DefaultRasterFileFormat
stream
- Opened output bit-stream.g
- Checked raster-graphics object.
java.io.IOException
public int headerLength()
headerLength
in interface DataFileFormat
headerLength
in class DefaultFileFormat
match(byte[], java.lang.String)
public double match(byte[] header, java.lang.String fileName)
match
in interface DataFileFormat
match
in class DefaultFileFormat
header
- Bytes from beginning of the file.fileName
- Optional file-name string.
headerLength()
,
fileNameMasks()
public java.lang.String[] fileNameMasks()
fileNameMasks
in interface DataFileFormat
fileNameMasks
in class DefaultFileFormat
match(byte[], java.lang.String)
public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |