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 class
InputStreamEntry.CachingStreamEntry
Cache the data on disk.static class
InputStreamEntry.FileStreamEntry
static class
InputStreamEntry.InMemoryEntry
Copy the data in-memory.
-
Field Summary
Fields Modifier and Type Field Description static InputStreamEntry
EMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
copyStream(DataOutput output)
Copy the stream.int
initialize()
Initialize the input stream entry.
-
-
-
Field Detail
-
EMPTY
static final InputStreamEntry EMPTY
-
-
Method Detail
-
initialize
int initialize() throws IOException
Initialize 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
-
-