Package gov.nih.mipav.model.file
Class FilePPM
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FilePPM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileDOCUMENT ME!private StringDOCUMENT ME!private FileInfoPPMDOCUMENT ME!private StringDOCUMENT ME!private ModelImageDOCUMENT ME!Fields inherited from class gov.nih.mipav.model.file.FileBase
BIG_ENDIAN, bitsPerPixel, fileNames, LITTLE_ENDIAN, pBarVisible, raFile, READ, READ_WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringreadLine()readLine() - reads a line of the file and strips comments indicated by the # symbol.private String[]retrieveValues(String inString) DOCUMENT ME!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! -
fileDir
DOCUMENT ME! -
fileInfo
DOCUMENT ME! -
fileName
DOCUMENT ME! -
image
DOCUMENT ME!
-
-
Constructor Details
-
FilePPM
File Portable Pixmap Utilities reader/writer constructor.- Parameters:
fName- file namefDir- file directory
-
-
Method Details
-
readImage
- Throws:
IOException
-
readLine
readLine() - reads a line of the file and strips comments indicated by the # symbol.- Returns:
- the line read in
- Throws:
IOException- if there is an error reading the file
-
retrieveValues
DOCUMENT ME!- Parameters:
inString- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-