public class CRC32Exception extends ZipException
RawZipFile.getCheckedInputStream(java.lang.String),
whereas the latter case is detected when the input stream returned by this
method gets closed.
The exception's detail message is the name of the ZIP entry.
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
actualCrc |
(package private) long |
expectedCrc |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
CRC32Exception(String entryName,
long expectedCrc,
long actualCrc)
Creates a new instance of
CRC32Exception where the
given entry name is the detail message of the base class. |
| Modifier and Type | Method and Description |
|---|---|
long |
getActualCrc()
Returns the CRC-32 value which has been computed from the contents
of the ZIP entry.
|
long |
getExpectedCrc()
Returns the CRC-32 value which has been read from the ZIP file.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
final long expectedCrc
final long actualCrc
CRC32Exception(String entryName, long expectedCrc, long actualCrc)
CRC32Exception where the
given entry name is the detail message of the base class.Throwable.getMessage(),
getExpectedCrc(),
getActualCrc()Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.