org.shlublu.javax.io
Class BasicIOStream

java.lang.Object
  |
  +--org.shlublu.javax.io.BasicIOStream
All Implemented Interfaces:
IOStream

public class BasicIOStream
extends java.lang.Object
implements IOStream

Creation : 28 aug 2001 Convenience class which store a couple of streams and allow access to them.

Since:
0.1

Constructor Summary
BasicIOStream(java.io.InputStream istreamGiven, java.io.OutputStream ostreamGiven)
          Ctor : initialize the streams to use
 
Method Summary
 java.io.InputStream getInputStream()
          Return the InputStream
 java.io.OutputStream getOutputStream()
          Return the OutputStream
 void setInputStream(java.io.InputStream istreamGiven)
          Set the InputStream to use
 void setOutputStream(java.io.OutputStream ostreamGiven)
          Set the OutputStream to use
 void setStreams(java.io.InputStream istreamGiven, java.io.OutputStream ostreamGiven)
          Called by ctor/reset methods to set the couple of streams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIOStream

public BasicIOStream(java.io.InputStream istreamGiven,
                     java.io.OutputStream ostreamGiven)
Ctor : initialize the streams to use
Method Detail

setStreams

public void setStreams(java.io.InputStream istreamGiven,
                       java.io.OutputStream ostreamGiven)
Called by ctor/reset methods to set the couple of streams

setInputStream

public void setInputStream(java.io.InputStream istreamGiven)
Set the InputStream to use

setOutputStream

public void setOutputStream(java.io.OutputStream ostreamGiven)
Set the OutputStream to use

getInputStream

public java.io.InputStream getInputStream()
                                   throws IOStreamException
Return the InputStream
Specified by:
getInputStream in interface IOStream

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws IOStreamException
Return the OutputStream
Specified by:
getOutputStream in interface IOStream