|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectbinaryFileStorage.DataUnitFileInformation
public class 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.
| Field Summary | |
|---|---|
private java.io.File |
file
File this data unit was read from |
private long |
indexInFile
Objects index in the file. |
private boolean |
needsUpdate
Set if the unit has changes offline, in which case the binary file will probably need rewriting |
| Constructor Summary | |
|---|---|
DataUnitFileInformation(java.io.File file,
long indexInFile)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.File file
private boolean needsUpdate
private long indexInFile
| Constructor Detail |
|---|
public DataUnitFileInformation(java.io.File file,
long indexInFile)
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||