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 |
|---|---|
private long |
actual |
private long |
expected |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
CRC32Exception(String name,
long expected,
long actual)
Creates a new instance of
CRC32Exception where the
given entry name forms part of the detail message. |
| Modifier and Type | Method and Description |
|---|---|
long |
getActualCrc()
Returns the CRC-32 value which has actually been found for the ZIP entry.
|
long |
getExpectedCrc()
Returns the CRC-32 value which has been expected for the ZIP entry.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate final long actual
private final long expected
private static final long serialVersionUID
CRC32Exception(String name, long expected, long actual)
CRC32Exception where the
given entry name forms part of the detail message.name - the entry name.expected - the declared CRC-32 value.actual - the actual CRC-32 value;getExpectedCrc(),
getActualCrc()Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.