de.schlichtherle.truezip.zip
Class RawZipFile.RawCheckedInputStream
java.lang.Object
java.io.InputStream
de.schlichtherle.truezip.io.DecoratingInputStream
de.schlichtherle.truezip.zip.RawZipFile.RawCheckedInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- RawZipFile<E extends ZipEntry>
private static final class RawZipFile.RawCheckedInputStream
- extends DecoratingInputStream
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.
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
RawZipFile.RawCheckedInputStream
public RawZipFile.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 DecoratingInputStream
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read in class DecoratingInputStream
- Throws:
IOException
skip
public long skip(long toSkip)
throws IOException
- Overrides:
skip in class DecoratingInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class DecoratingInputStream
- Throws:
IOException
mark
public void mark(int readlimit)
- Overrides:
mark in class DecoratingInputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class DecoratingInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class DecoratingInputStream
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.