TrueZIP Driver ZIP 7.1

de.schlichtherle.truezip.zip
Class RawZipFile.CheckedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.util.zip.CheckedInputStream
              extended by de.schlichtherle.truezip.zip.RawZipFile.CheckedInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
RawZipFile<E extends ZipEntry>

private static final class RawZipFile.CheckedInputStream
extends CheckedInputStream

extends its super class to perform the check again the expected CRC from the entry provided to its constructor when close() is called.


Field Summary
private  ZipEntry entry
           
private  int size
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
RawZipFile.CheckedInputStream(InputStream in, ZipEntry entry, int size)
           
 
Method Summary
 void close()
           
 long skip(long toSkip)
           
 
Methods inherited from class java.util.zip.CheckedInputStream
getChecksum, read, read
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

private final ZipEntry entry

size

private final int size
Constructor Detail

RawZipFile.CheckedInputStream

public RawZipFile.CheckedInputStream(InputStream in,
                                     ZipEntry entry,
                                     int size)
Method Detail

skip

public long skip(long toSkip)
          throws IOException
Overrides:
skip in class CheckedInputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException

TrueZIP Driver ZIP 7.1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.