|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.io.files.snapshots.DirectorySnapshot
public class DirectorySnapshot
Create a directory snapshot. A directory snapshot contains informations about all files or subdirectories stored into the considered directory. The snapshot is saved into a text file. This class provides more traitments based on one or more snapshots.
FileSystem.rmFromSnapshot(DirectorySnapshot)| Constructor Summary | |
|---|---|
DirectorySnapshot(java.lang.String directoryPath,
java.lang.String snapshotFilename)
Constructs a new directory snapshot. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCanonicalDirectoryPath()
Returns the canonical path for the directory associated to this snapshot |
java.util.Iterator<java.io.File> |
getFilenames()
Returns an iterator over the files stored in this directory snapshot, and in proper sequence. |
static DirectorySnapshot |
loadFromFile(java.lang.String snapshotFilename)
Reloading an existing snapshot from file. |
java.lang.String |
toString()
Returns the string representation for this snapshot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectorySnapshot(java.lang.String directoryPath,
java.lang.String snapshotFilename)
throws DirectorySnapshotException
directoryPath - The directory used for construct the snapshot.snapshotFilename - The file used to save the snapshot content.
DirectorySnapshotException - Thrown if the directory structure cannot be scan.FileSystem.rmFromSnapshot(DirectorySnapshot)| Method Detail |
|---|
public static DirectorySnapshot loadFromFile(java.lang.String snapshotFilename)
throws DirectorySnapshotException
snapshotFilename - The file used for reads snapshot data.
DirectorySnapshotException - Thrown if the snapshot cannot be used.public java.lang.String getCanonicalDirectoryPath()
public java.util.Iterator<java.io.File> getFilenames()
throws DirectorySnapshotException
DirectorySnapshotException - Thrown if the snapshot cannot be used.public java.lang.String toString()
toString in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||