|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--medi.util.VolumeScanningSaver
It is a class used to save information about volume scanning.
| Constructor Summary | |
VolumeScanningSaver(java.lang.String fileName)
Creates new VolumeScanningSaver |
|
| Method Summary | |
void |
addDirectory(java.lang.String curDir)
Adds a directory in the file. |
void |
addExitSubdir()
Currently unused. |
void |
addFile(java.lang.String curFile)
Adds a file name in the file. |
void |
clear()
Puts everything in a clean status. |
java.lang.String |
getDirectory()
Returns a directory. |
java.lang.String |
getFile()
Returns a file. |
java.lang.String |
getVolumeName()
Returns the volume name. |
boolean |
isSuspended()
Checks if the thread is suspended. |
void |
load()
Loads the file. |
void |
loadStatus()
Loads the status from the file. |
void |
save()
Saves the file. |
void |
saveStatus()
Saves the status in the file. |
void |
setVolumeName(java.lang.String vname)
Sets the volume name. |
void |
undo()
Rollbacks the last read operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VolumeScanningSaver(java.lang.String fileName)
fileName - The file name in which information will be saved.| Method Detail |
public void addDirectory(java.lang.String curDir)
curDir - The directory to add.public void addFile(java.lang.String curFile)
curFile - The file name to add.public void addExitSubdir()
public void clear()
public void load()
throws java.io.FileNotFoundException
java.io.FileNotFoundException - If the file is not found.public void loadStatus()
public void save()
throws java.io.IOException
java.io.IOException - If something goes wrong.
public void saveStatus()
throws java.io.IOException
java.io.IOException - If something goes wrong.public void setVolumeName(java.lang.String vname)
vname - The volume name to store.public java.lang.String getVolumeName()
public java.lang.String getDirectory()
getFile() method returned null.public java.lang.String getFile()
null otherwise.public boolean isSuspended()
public void undo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||