Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.types.content.sealing
Class ContentSizeMismatchException

java.lang.Object
  extended by oracle.irm.engine.types.content.sealing.ContentSizeMismatchException

All Implemented Interfaces:
Serializable

public class ContentSizeMismatchException
extends Object
implements Serializable

Content Size Mismatch exception information. 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.

This class is used to store the state of an EJB exception and the fault data in a Web Service exception.

See Also:
Serialized Form

Constructor Summary
ContentSizeMismatchException()
          Default constructor.
ContentSizeMismatchException(long expected, long actual)
          Constructor.

 

Method Summary
 long getActual()
          Actual size of the data read from the stream.
 long getExpected()
          The expected size of the unsealed data.
 void setActual(long value)
          Actual size of the data read from the stream.
 void setExpected(long value)
          The expected size of the unsealed data.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ContentSizeMismatchException

public ContentSizeMismatchException()
Default constructor.

ContentSizeMismatchException

public ContentSizeMismatchException(long expected,
                                    long actual)
Constructor.

Method Detail

getExpected

public long getExpected()
The expected size of the unsealed data.
Returns:
the value of the property.

setExpected

public void setExpected(long value)
The expected size of the unsealed data.
Parameters:
value - the new value for the property.

getActual

public long getActual()
Actual size of the data read from the stream.
Returns:
the value of the property.

setActual

public void setActual(long value)
Actual size of the data read from the stream.
Parameters:
value - the new value for the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.