| Modifier and Type | Class and Description |
|---|---|
static class |
ZepStore.CompressOptions
This is used with MakeZepStore.add()
|
static class |
ZepStore.MakeZepStore
This is used to add files to a new ZepStore.
|
FileStore.Util| Constructor and Description |
|---|
ZepStore(RandomStream in,
String name)
Create a ZepStore for reading from a open RandomStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileStoreEntry |
findEntry(String fullName) |
static ZepStore.CompressOptions |
getDefaultCompressionOptions() |
int |
getEntryCount()
If the count is known then return the number of entries, otherwise return -1.
|
FileStoreEntryFile |
getFileSystem(Handle h) |
FileStoreEntry |
getNewEntry(String forName) |
static ZepStore.CompressOptions |
getNoCompressionOptions() |
Enumeration |
getStoreEntries()
Get an enumeration to go through the entries in the file.
|
Hashtable |
getStoreHashtable()
Expose the hashtable of entries if available.
|
String |
getStoreName() |
InputStream |
openInputStream(FileStoreEntry entry) |
RandomStream |
openReadableRandomStream(FileStoreEntry entry) |
static ZepStore.MakeZepStore |
startZepStore(RandomStream out)
Use this to start building a ZepStore compatible file.
|
public ZepStore(RandomStream in, String name) throws IOException
in - the open RandomStream.name - a descriptive name for the ZepFile.IOExceptionpublic static ZepStore.MakeZepStore startZepStore(RandomStream out) throws IOException
out - a newly opened RandomStream for writing to the ZepStore.IOExceptionpublic static ZepStore.CompressOptions getNoCompressionOptions()
public static ZepStore.CompressOptions getDefaultCompressionOptions()
public void close()
throws IOException
close in interface FileStoreIOExceptionpublic int getEntryCount()
FileStoregetEntryCount in interface FileStorepublic RandomStream openReadableRandomStream(FileStoreEntry entry) throws IOException
IOExceptionpublic InputStream openInputStream(FileStoreEntry entry) throws IOException
openInputStream in interface FileStoreIOExceptionpublic Enumeration getStoreEntries() throws IOException
FileStoregetStoreEntries in interface FileStoreIOExceptionpublic Hashtable getStoreHashtable() throws IOException
FileStoregetStoreHashtable in interface FileStoreIOExceptionpublic FileStoreEntry getNewEntry(String forName)
getNewEntry in interface FileStorepublic String getStoreName()
getStoreName in interface FileStorepublic FileStoreEntry findEntry(String fullName)
public FileStoreEntryFile getFileSystem(Handle h)
getFileSystem in interface FileStore