public class ObjectSerializer.StreamConnector extends java.lang.Object implements IStreamConnector
| Constructor and Description |
|---|
ObjectSerializer.StreamConnector(IStreamConnector connector)
Creates a new stream connector that uses the specified connector
to create input and output streams.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
Returns an object input stream that is piped to the input stream
of the underlying connector.
|
java.io.OutputStream |
getOutputStream()
Returns an object output stream that is piped to the output stream
of the underlying connector.
|
IPlugin |
getPlugin()
Returns a reference to the plug-in that created the connector.
|
void |
release()
Releases the connector and closes all potentially open input and
output streams.
|
public ObjectSerializer.StreamConnector(IStreamConnector connector)
connector - The connector used to create basic input and
output streams.public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface IStreamConnectorjava.io.IOException - Thrown by the underlying stream.public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface IStreamConnectorjava.io.IOException - Thrown by the underlying stream.public void release()
release in interface IConnectorpublic IPlugin getPlugin()
getPlugin in interface IConnector