Class SimpleTransportable

  • All Implemented Interfaces:
    Transportable

    public final class SimpleTransportable
    extends Object
    implements Transportable
    SimpleTransportable is an immutable Transportable object that simply writes a byte buffer for its toStream implementation. It can be used for creating lightweight copies of more heavy-weight documents for high performance and simplified synchronization. Because it is immutable, the fromStream() method of this class throws an unchecked exception if invoked.