@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class CheckedZipInputShop extends ZipInputShop
ZipInputShop which checks the CRC-32 value for all ZIP entries.
The additional CRC-32 computation makes this class slower than its super
class.
If there is a mismatch of the CRC-32 values for a ZIP entry in an input
archive, the InputStream.close() method of the corresponding stream
for the archive entry will throw a CRC32Exception.
Other than this, the archive entry will be processed normally.
So if just the CRC-32 value for the entry in the archive file has been
modified, you can still read its entire contents.
CheckedZipDriverDEFAULT_CHARSET| Constructor and Description |
|---|
CheckedZipInputShop(ReadOnlyFile rof,
ZipDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
InputSocket<ZipArchiveEntry> |
getInputSocket(String name)
Overridden to read from a checked input stream.
|
getSizebusy, close, getCharset, getCheckedInputStream, getCheckedInputStream, getComment, getEntry, getInputStream, getInputStream, getInputStream, getPostambleInputStream, getPostambleLength, getPreambleInputStream, getPreambleLength, iterator, length, offsetsConsiderPreamble, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEntry, iteratorpublic CheckedZipInputShop(ReadOnlyFile rof, ZipDriver driver) throws IOException
IOExceptionpublic InputSocket<ZipArchiveEntry> getInputSocket(String name)
getInputSocket in interface InputService<ZipArchiveEntry>getInputSocket in class ZipInputShopCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.