Package binaryFileStorage
Class DataUnitFileInformation
java.lang.Object
binaryFileStorage.DataUnitFileInformation
Little bit of data to add to all PamDataUnits
 when they are read back from a file which will 
 be used to say which file they were from, whether they
 need updating, etc.
- Author:
 - Doug Gillespie
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDataUnitFileInformation(BinaryStore binaryStore, File file, long indexInFile)  - 
Method Summary
Modifier and TypeMethodDescriptiongetFile()longgetShortFileName(int maxChars) Get a file name, but shortened to a maximum number of characters.booleanvoidsetBinaryStore(BinaryStore binaryStore) voidsetNeedsUpdate(boolean needsUpdate)  
- 
Constructor Details
- 
DataUnitFileInformation
 
 - 
 - 
Method Details
- 
getShortFileName
Get a file name, but shortened to a maximum number of characters.Since the most file specific information will always come at the end of the file, the beginning of the name is stripped off and the end left alone.
- Parameters:
 maxChars- max length of file name to be returned.- Returns:
 - a shortened file name.
 
 - 
isNeedsUpdate
public boolean isNeedsUpdate()- Returns:
 - the needsUpdate
 
 - 
setNeedsUpdate
public void setNeedsUpdate(boolean needsUpdate) - Parameters:
 needsUpdate- the needsUpdate to set
 - 
getFile
- Returns:
 - the file
 
 - 
getIndexInFile
public long getIndexInFile()- Returns:
 - the indexInFile
 
 - 
getBinaryStore
- Returns:
 - the binaryStore
 
 - 
setBinaryStore
- Parameters:
 binaryStore- the binaryStore to set
 
 -