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)
public void toStream(OutputStream os) throws IOException
TransportabletoStream in interface Transportableos - The stream to write into.IOExceptionpublic KeyValuePair fromStream(InputStream os) throws IOException
fromStream in interface Transportableos - The stream to read from.UnsupportedOperationException - thrown unconditionally.IOExceptionCopyright © 2006–2024 The Apache Software Foundation. All rights reserved.