com.github.stephenc.javaisotools.loopfs.api
Interface FileSystem<T extends FileEntry>
- All Superinterfaces:
- Closeable, Iterable<T>
public interface FileSystem<T extends FileEntry>
- extends Iterable<T>, Closeable
A loop-fs file system, which is deserialize-only and consists of zero or more entries. The data for each entry can be
retrieved using getInputStream(FileEntry).
|
Method Summary |
InputStream |
getInputStream(T entry)
Returns an input stream that reads the data for the given entry. |
boolean |
isClosed()
Returns whether or not this FileSystem has been closed. |
getInputStream
InputStream getInputStream(T entry)
- Returns an input stream that reads the data for the given entry.
- Parameters:
entry - the FileEntry
- Returns:
- an input stream that reads the contents of the given entry
isClosed
boolean isClosed()
- Returns whether or not this FileSystem has been closed.
- Returns:
- true if
Closeable.close() has been called on this * FileSystem, otherwise false.
Copyright © 2013. All Rights Reserved.