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 |
FILE_SYS_CONF_DIR_NAME
public static final java.lang.String FILE_SYS_CONF_DIR_NAME
ARCHIVE_LIST_FILE_NAME
public static final java.lang.String ARCHIVE_LIST_FILE_NAME
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 ArchiveInfoFlex getArchiveInfo(java.lang.String name)
throws FileAccessException
- Specified by:
getArchiveInfo
in interface ArchiveGetter
getArchive
public Archive getArchive(ArchiveInfoFlex archive)
throws FileAccessException
- Specified by:
getArchive
in interface ArchiveGetter
saveArchiveInfo
public void saveArchiveInfo(ArchiveInfoFlex info)
throws FileAccessException
- Specified by:
saveArchiveInfo
in interface ArchiveGetter
saveArchiveInfo
public void saveArchiveInfo(ArchiveInfo info)
throws FileAccessException
- Does nothing. Just left in to maintain compatibility with ArchiveInfoFS2.
addArchive
public void addArchive(java.lang.String name,
java.lang.String pathToArchiveRoot)
throws FileAccessException
- Specified by:
addArchive
in interface ArchiveGetter
deleteArchive
public void deleteArchive(ArchiveInfoFlex archive)
throws FileAccessException
- Specified by:
deleteArchive
in interface ArchiveGetter