Package gov.nih.mipav.model.file
Class FileMap
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileMap
Special for Benes.
- Version:
- 0.1 Sept 2, 1997
- Author:
- Matthew J. McAuliffe, Ph.D.
-
Field Summary
FieldsFields inherited from class gov.nih.mipav.model.file.FileBase
BIG_ENDIAN, bitsPerPixel, fileNames, LITTLE_ENDIAN, pBarVisible, raFile, READ, READ_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionFileMap(String fileName, String fileDir, FileInfoBase fInfo, int rwFlag) Creates a new FileMap object. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidparseBuffer(short[] buffer, ModelImage image) parseImage 03 00 or 00 03 is the delimiter.voidreadImage(ModelImage image, int offset) readImage - This method reads a raw chunk from a file.Methods inherited from class gov.nih.mipav.model.file.FileBase
addProgressChangeListener, bytesToDouble, bytesToFloat, bytesToInt, bytesToShort, doubleToBytes, finalize, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, floatToBytes, getBufferDouble, getBufferFloat, getBufferInt, getBufferLong, getBufferShort, getBufferUShort, getDataType, getDouble, getFloat, getInt, getLong, getProgressChangeListeners, getRaFile, getSignedShort, getString, getUInt, getUnsignedByte, getUnsignedShort, intToBytes, isBigEndian, isProgressBarVisible, linkProgress, longToBytes, readDouble, readFloat, readInt, readLong, readShort, readString, readUnsignedShort, removeProgressChangeListener, setBigEndian, setBufferFloat, setBufferInt, setBufferLong, setBufferShort, setBufferString, setDataType, setEndianess, shortToBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort
-
Field Details
-
file
DOCUMENT ME! -
fileInfo
DOCUMENT ME!
-
-
Constructor Details
-
FileMap
Creates a new FileMap object.- Parameters:
fileName- DOCUMENT ME!fileDir- DOCUMENT ME!fInfo- DOCUMENT ME!rwFlag- DOCUMENT ME!- Throws:
IOException- DOCUMENT ME!
-
-
Method Details
-
readImage
readImage - This method reads a raw chunk from a file.- Parameters:
image- the ModelImage to read the image file intooffset- the offset into the image file (from the end of the file)- Throws:
IOException- if there is an error reading the file
-
parseBuffer
parseImage 03 00 or 00 03 is the delimiter.- Parameters:
buffer- DOCUMENT ME!image- DOCUMENT ME!
-