public final class SimpleTransportable extends 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(InputStream os)
Not implemented (throws UnsupportedOperationException if invoked) to preserve immutability.
|
void |
toStream(OutputStream os)
Write the object to the output stream.
|
public SimpleTransportable(Transportable convert_me)
convert_me - -public void toStream(OutputStream os) throws IOException
TransportabletoStream in interface Transportableos - The stream to write into.IOException - -public KeyValuePair fromStream(InputStream os) throws IOException
fromStream in interface Transportableos - The stream to read from.UnsupportedOperationException - thrown unconditionally.IOException - -Copyright © 2018. All rights reserved.