FileStore.Util
Modifier and Type | Field and Description |
---|---|
protected RandomStream |
rs |
Constructor and Description |
---|
EveFile(RandomStream rs,
String name)
Create an EveFile opened via the specified RandomStream for read-only access.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
FileStoreEntry |
findEntry(String fullName) |
int |
getEntryCount()
If the count is known then return the number of entries, otherwise return -1.
|
FileStoreEntryFile |
getFileSystem(Handle h) |
static InputStream |
getInputStream(RandomStream s,
String name) |
FileStoreEntry |
getNewEntry(String forName) |
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) |
protected void |
readEntries() |
protected RandomStream rs
public EveFile(RandomStream rs, String name)
rs
- the RandomStream of the open EveFile.public int getEntryCount()
FileStore
getEntryCount
in interface FileStore
protected void readEntries() throws IOException, CorruptedDataException
IOException
CorruptedDataException
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 InputStream openInputStream(FileStoreEntry entry) throws IOException
openInputStream
in interface FileStore
IOException
public FileStoreEntry findEntry(String fullName)
public FileStoreEntryFile getFileSystem(Handle h)
getFileSystem
in interface FileStore
public static InputStream getInputStream(RandomStream s, String name) throws IOException
IOException
public void close() throws IOException
close
in interface FileStore
IOException