de.schlichtherle.util.zip
Class BasicZipFile.RawCheckedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.schlichtherle.util.zip.BasicZipFile.RawCheckedInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- BasicZipFile
private static final class BasicZipFile.RawCheckedInputStream
- extends FilterInputStream
A stream which reads and returns deflated data from its input
while a CRC-32 checksum is computed over the inflated data and
checked in the method close.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crc
private final Checksum crc
singleByteBuf
private final byte[] singleByteBuf
inf
private final Inflater inf
infBuf
private final byte[] infBuf
entry
private final ZipEntry entry
closed
private boolean closed
BasicZipFile.RawCheckedInputStream
public BasicZipFile.RawCheckedInputStream(InputStream in,
ZipEntry entry,
int size)
ensureOpen
private void ensureOpen()
throws IOException
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
skip
public long skip(long toSkip)
throws IOException
- Overrides:
skip in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterInputStream
- Throws:
IOException
mark
public void mark(int readlimit)
- Overrides:
mark in class FilterInputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class FilterInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class FilterInputStream
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.