public final class SimpleTransportable extends java.lang.Object implements Transportable
| Constructor and Description |
|---|
SimpleTransportable(Transportable convert_me)
Create a SimpleTransportable that is an immutable copy of the provided Transportable object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SimpleTransportable(Transportable convert_me)
public void toStream(java.io.OutputStream os)
throws java.io.IOException
TransportabletoStream in interface Transportableos - The stream to write into.java.io.IOExceptionpublic 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.IOExceptionCopyright © 2013. All Rights Reserved.