public class DataUnitFileInformation
extends java.lang.Object
Constructor and Description |
---|
DataUnitFileInformation(java.io.File file,
long indexInFile) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
long |
getIndexInFile() |
java.lang.String |
getShortFileName(int maxChars)
Get a file name, but shortened to a maximum number of
characters.
|
boolean |
isNeedsUpdate() |
void |
setNeedsUpdate(boolean needsUpdate) |
public DataUnitFileInformation(java.io.File file, long indexInFile)
public java.lang.String getShortFileName(int maxChars)
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.
maxChars
- max length of file name to be returned.public boolean isNeedsUpdate()
public void setNeedsUpdate(boolean needsUpdate)
needsUpdate
- the needsUpdate to setpublic java.io.File getFile()
public long getIndexInFile()