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.IOException
public static ZepStore.MakeZepStore startZepStore(RandomStream out) throws IOException
out
- a newly opened RandomStream for writing to the ZepStore.IOException
public static ZepStore.CompressOptions getNoCompressionOptions()
public static ZepStore.CompressOptions getDefaultCompressionOptions()
public void close() throws IOException
close
in interface FileStore
IOException
public int getEntryCount()
FileStore
getEntryCount
in interface FileStore
public RandomStream openReadableRandomStream(FileStoreEntry entry) throws IOException
IOException
public InputStream openInputStream(FileStoreEntry entry) throws IOException
openInputStream
in interface FileStore
IOException
public Enumeration getStoreEntries() throws IOException
FileStore
getStoreEntries
in interface FileStore
IOException
public Hashtable getStoreHashtable() throws IOException
FileStore
getStoreHashtable
in interface FileStore
IOException
public FileStoreEntry getNewEntry(String forName)
getNewEntry
in interface FileStore
public String getStoreName()
getStoreName
in interface FileStore
public FileStoreEntry findEntry(String fullName)
public FileStoreEntryFile getFileSystem(Handle h)
getFileSystem
in interface FileStore