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
ConstructorDescriptionDataUnitFileInformation
(BinaryStore binaryStore, File file, long indexInFile) -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
long
getShortFileName
(int maxChars) Get a file name, but shortened to a maximum number of characters.boolean
void
setBinaryStore
(BinaryStore binaryStore) void
setNeedsUpdate
(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
-