com.softwareag.um.io.SynchronousTransport Class Reference

This Transport represents a client connection. More...

Inheritance diagram for com.softwareag.um.io.SynchronousTransport:
com.softwareag.um.io.Transport

Public Member Functions

void close ()
 Close the Transport so it can no longer be used for communication.
 
InputStream getInputStream ()
 Get the InputStream for this Transport. More...
 
OutputStream getOutputStream ()
 Get the OutputStream for this Transport. More...
 
boolean isClosed ()
 Check to see whether this Transport has been closed already. More...
 

Detailed Description

This Transport represents a client connection.

It is created on the client side using TransportFactory.connect and on the server side using SynchronousServerTransport.accept(). Read and write calls to this Transport are blocking calls.

Member Function Documentation

InputStream com.softwareag.um.io.SynchronousTransport.getInputStream ( )

Get the InputStream for this Transport.

This can be used to read data sent by/to the client.

Returns
the InputStream for this client Transport
OutputStream com.softwareag.um.io.SynchronousTransport.getOutputStream ( )

Get the OutputStream for this Transport.

This can be used to write data to the client/server.

Returns
OutputStream for this client Transport
boolean com.softwareag.um.io.SynchronousTransport.isClosed ( )

Check to see whether this Transport has been closed already.

Returns
return true if the Transport is closed

Implements com.softwareag.um.io.Transport.