public class DynamicZipInputStream extends DynamicInputStream
entries
should be provided on construction
.Modifier and Type | Class and Description |
---|---|
static interface |
DynamicZipInputStream.Entry
Represents a single entry from a ZIP files.
|
Constructor and Description |
---|
DynamicZipInputStream(Iterable<DynamicZipInputStream.Entry> entries)
Create a new
DynamicZipInputStream instance. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
writeMoreData()
Called when more data should be written to the
output stream . |
getOutputStream, read, read
available, mark, markSupported, read, reset, skip
public DynamicZipInputStream(Iterable<DynamicZipInputStream.Entry> entries)
DynamicZipInputStream
instance.entries
- the zip entries that should be written to the streamprotected boolean writeMoreData() throws IOException
DynamicInputStream
output stream
. This method can be
called many times, implementations should write zero or more bytes to output stream
on
each call. Generally it is recommended that not more that 4096 bytes are written in a single call.writeMoreData
in class DynamicInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2014. All rights reserved.