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
Transportable
toStream
in interface Transportable
os
- The stream to write into.java.io.IOException
public KeyValuePair fromStream(java.io.InputStream os) throws java.io.IOException
fromStream
in interface Transportable
os
- The stream to read from.java.lang.UnsupportedOperationException
- thrown unconditionally.java.io.IOException
Copyright © 2012. All Rights Reserved.