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
Transportable
toStream
in interface Transportable
os
- The stream to write into.IOException
public KeyValuePair fromStream(InputStream os) throws IOException
fromStream
in interface Transportable
os
- The stream to read from.UnsupportedOperationException
- thrown unconditionally.IOException
Copyright © 2015. All rights reserved.