Interface InputStreamEntry
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
InputStreamEntry.CachingStreamEntry,InputStreamEntry.FileStreamEntry,InputStreamEntry.InMemoryEntry
public interface InputStreamEntry extends Closeable
- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInputStreamEntry.CachingStreamEntryCache the data on disk.static classInputStreamEntry.FileStreamEntrystatic classInputStreamEntry.InMemoryEntryCopy the data in-memory.
-
Field Summary
Fields Modifier and Type Field Description static InputStreamEntryEMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopyStream(DataOutput output)Copy the stream.intinitialize()Initialize the input stream entry.
-
-
-
Field Detail
-
EMPTY
static final InputStreamEntry EMPTY
-
-
Method Detail
-
initialize
int initialize() throws IOExceptionInitialize the input stream entry.- Returns:
- the size of the underlying stream
- Throws:
IOException
-
copyStream
void copyStream(DataOutput output) throws IOException
Copy the stream.- Parameters:
output- the data output- Throws:
IOException- for any error
-
-