|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
oracle.irm.engine.content.sealing.ContentSizeMismatchException
public class ContentSizeMismatchException
Unsealed content size mismatch. When unsealed content is sealed the size of the unsealed data can be explicitly specified or inferred from the input data (e.g. file size or byte array length). This exception is thrown when the unsealed content size provided during sealing does not match the amount of data read from the unsealed data stream.
The error message associated with this exception is:
IRM-01081: The expected size of the unsealed content was {0} bytes in length. The actual number of bytes read from the input stream was {1}.
Constructor Summary | |
---|---|
ContentSizeMismatchException(long expected, long actual) Constructor. |
|
ContentSizeMismatchException(long expected, long actual, Throwable cause) Constructor. |
Method Summary | |
---|---|
long |
getActual() Actual size of the data read from the stream. |
long |
getExpected() The expected size of the unsealed data. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentSizeMismatchException(long expected, long actual)
expected
- The expected size of the unsealed data.actual
- Actual size of the data read from the stream.public ContentSizeMismatchException(long expected, long actual, Throwable cause)
expected
- The expected size of the unsealed data.actual
- Actual size of the data read from the stream.cause
- Cause of the exception.Method Detail |
---|
public final long getExpected()
public final long getActual()
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |