private class RawZipFile.IntervalInputStream extends RawZipFile.AccountedInputStream
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
addDummyByte |
(package private) long |
fp |
(package private) long |
remaining |
| Constructor and Description |
|---|
RawZipFile.IntervalInputStream(long start,
long remaining) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addDummy()
Inflater needs an extra dummy byte for nowrap - see
Inflater's javadocs.
|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
closemark, markSupported, read, reset, skipRawZipFile.IntervalInputStream(long start,
long remaining)
start - The start address (not offset) in archive.remaining - The remaining bytes allowed to be read in
archive.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionvoid addDummy()
public int available()
throws IOException
available in class InputStreamInteger.MAX_VALUE.
Note that this is only relevant for entries which have been
stored with the STORED method.
For entries stored according to the DEFLATED
method, the value returned by this method on the
InputStream returned by RawZipFile.getInputStream(java.lang.String)
is actually determined by an InflaterInputStream.IOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.