|
||||||||||
| 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
public abstract class DefaultRasterFileFormat
File format default implementation for raster image data.
| Field Summary | |
|---|---|
protected static java.lang.String |
CATEGORY
Object category. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, reg, 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 | |
|---|---|
DefaultRasterFileFormat()
|
|
| Method Summary | |
|---|---|
protected void |
commonLoad(BitStream stream,
RasterGraphics g)
Common load code. |
protected void |
commonSave(BitStream stream,
RasterGraphics g)
Common save code. |
boolean |
loadFile(BitStream stream,
java.lang.Object support)
Retrieves data from the given BitStream. |
boolean |
loadFile(java.lang.String fileName,
java.lang.String detail)
Retrieves data from the given file (stream). |
boolean |
saveFile(BitStream stream,
java.lang.Object support)
Saves data to the given BitStream. |
boolean |
saveFile(java.lang.String fileName,
java.lang.String detail)
Saves data to the given file (stream). |
| Methods inherited from class cz.cuni.jagrlib.DefaultFileFormat |
|---|
closeFile, fileNameMasks, headerLength, init, match, 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, setTemplate, 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 |
|---|
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
| Constructor Detail |
|---|
public DefaultRasterFileFormat()
| Method Detail |
|---|
protected void commonLoad(BitStream stream,
RasterGraphics g)
throws java.io.IOException
stream - Opened input bit-stream.g - Checked raster-graphics object.
java.io.IOException
protected void commonSave(BitStream stream,
RasterGraphics g)
throws java.io.IOException
stream - Opened output bit-stream.g - Checked raster-graphics object.
java.io.IOException
public boolean loadFile(java.lang.String fileName,
java.lang.String detail)
throws java.io.IOException
loadFile in interface DataFileFormatloadFile in class DefaultFileFormatfileName - File-name (stream-name) to read from (can be null).detail - Further implementation-specific information ("r" or "rw" for mapped mode).
true if the operation was successful.
java.io.IOExceptionloadFile(BitStream,Object),
saveFile(String,String),
DefaultFileFormat.closeFile()
public boolean loadFile(BitStream stream,
java.lang.Object support)
throws java.io.IOException
BitStream. This metod is optional.
The stream should be opened before - only the reOpen(false,null) call
can be used.
loadFile in interface DataFileFormatloadFile in class DefaultFileFormatstream - Input bit-stream (opened - call reOpen(false,null) first).support - Implementation-specific data (e.g. second BitStream for
file-formats with DataFileFormat.DOUBLE_STREAM property).
true if the operation was successful.
java.io.IOExceptionloadFile(String,String),
DataFileFormat.DOUBLE_STREAM
public boolean saveFile(java.lang.String fileName,
java.lang.String detail)
throws java.io.IOException
saveFile in interface DataFileFormatsaveFile in class DefaultFileFormatfileName - File-name (stream-name) to write to (can be null).detail - Further implementation-specific information.
true if the operation was successful.
java.io.IOExceptionsaveFile(BitStream,Object),
loadFile(String,String)
public boolean saveFile(BitStream stream,
java.lang.Object support)
throws java.io.IOException
BitStream. This metod is optional.
The stream should be opened and empty - the reOpen(true,null) call
is not required.
saveFile in interface DataFileFormatsaveFile in class DefaultFileFormatstream - Output bit-stream (opened and empty).support - Implementation-specific data (e.g. second BitStream for
file-formats with DataFileFormat.DOUBLE_STREAM property).
true if the operation was successful.
java.io.IOExceptionsaveFile(String,String),
DataFileFormat.DOUBLE_STREAM
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||