org.sourcejammer.project.model.filesys
Class FileSysArchiveGetter
java.lang.Object
|
+--org.sourcejammer.project.model.filesys.FileSysArchiveGetter
- All Implemented Interfaces:
- ArchiveGetter
- public class FileSysArchiveGetter
- extends java.lang.Object
- implements ArchiveGetter
Singleton implementation of ArchiveGetter for file system. This object
is able to return information about all the archives stored on the file
system for this installation of Source Jammer. It can also return the
Archive object for a given archive.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static FileSysArchiveGetter getInstance()
getArchiveNames
public java.util.Enumeration getArchiveNames()
throws FileAccessException
- Specified by:
getArchiveNames
in interface ArchiveGetter
getFullPathToArchiveInfoObject
public java.lang.String getFullPathToArchiveInfoObject(java.lang.String name)
throws FileAccessException
getArchiveInfo
public ArchiveInfo getArchiveInfo(java.lang.String name)
throws FileAccessException
- Specified by:
getArchiveInfo
in interface ArchiveGetter
getArchive
public Archive getArchive(ArchiveInfo archive)
throws FileAccessException
- Specified by:
getArchive
in interface ArchiveGetter
saveArchiveInfo
public void saveArchiveInfo(ArchiveInfo info)
throws FileAccessException
- Specified by:
saveArchiveInfo
in interface ArchiveGetter
addArchive
public void addArchive(java.lang.String name,
java.lang.String pathToArchiveRoot)
throws FileAccessException
- Specified by:
addArchive
in interface ArchiveGetter
deleteArchive
public void deleteArchive(ArchiveInfo archive)
throws FileAccessException
- Specified by:
deleteArchive
in interface ArchiveGetter