Package gov.nih.mipav.model.file
Class FilePGM
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FilePGM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FileDOCUMENT ME!private StringDOCUMENT ME!private FileInfoPGMDOCUMENT ME!private StringDOCUMENT ME!private ModelImageDOCUMENT ME!private ViewJProgressBarDOCUMENT 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! -
progressBar
DOCUMENT ME!
-
-
Constructor Details
-
FilePGM
File Portable Greymap 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!
-