Class cam.netapp.Xstream


This class implements a cross connected set of PipedInputStreams and PipedOutputStreams. The main(...) routine of the class gives a a sample of it's use. The following is a schematic representation of the connections provided by an Xstream instance.

Ttypically, this class is used in the "local" testing of classes that communicate via streams.

When one is creating connections via an Xstream instance, the internal use of PipedInputStreams and PipedOutputStreams dictates that one creates the source of the communication link before the sink. For example, if one is using these streams along with ObjectInputStreams and ObjectOutputStreams, this dictates that an ObjectOutputStream be instantiated at one end of the communication link first and then an ObjectInputStream be instantiated at the other end of the comminication link second. See the main(...) routine for an example of this.

Constructor

public Xstream()

Methods/Access functions

public InputStream getA_InputStream()
public OutputStream getA_OutputStream()
public InputStream getB_InputStream()
public OutputStream getB_OutputStream()

Chris Anderson © UCLA 1998