|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.vinci.transport.SimpleTransportable
public final class SimpleTransportable
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.
| Constructor Summary | |
|---|---|
SimpleTransportable(Transportable convert_me)
Create a SimpleTransportable that is an immutable copy of the provided Transportable object. |
|
| Method Summary | |
|---|---|
KeyValuePair |
fromStream(java.io.InputStream os)
Not implemented (throws UnsupportedOperationException if invoked) to preserve immutability. |
void |
toStream(java.io.OutputStream os)
Write the object to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTransportable(Transportable convert_me)
| Method Detail |
|---|
public void toStream(java.io.OutputStream os)
throws java.io.IOException
Transportable
toStream in interface Transportableos - The stream to write into.
java.io.IOException
public KeyValuePair fromStream(java.io.InputStream os)
throws java.io.IOException
fromStream in interface Transportableos - The stream to read from.
java.lang.UnsupportedOperationException - thrown unconditionally.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||