All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class macrolanguage.SimpleStream

java.lang.Object
   |
   +----java.io.OutputStream
           |
           +----macrolanguage.SimpleStream

public class SimpleStream
extends OutputStream
The SimpleStream class implements OutputStream and simply stores all that is written to the output stream. It's purpose is to allow programms who only use text streams to implement the stream in a simple way.


Variable Index

 o stringsWritten

Constructor Index

 o SimpleStream()

Method Index

 o close()
the close method does nothing in this implementation.
 o flush()
the flush method does nothing in this implementation.
 o getStringsWritten()
returns a vector containing all the strings written to the stream.
 o write(byte[])
save a string of data to the stream vector.
 o write(byte[], int, int)
save a string of data to the stream vector.
 o write(int)
save an intger to the stream vector.

Variables

 o stringsWritten
 private Vector stringsWritten

Constructors

 o SimpleStream
 public SimpleStream()

Methods

 o close
 public void close()
the close method does nothing in this implementation.

Overrides:
close in class OutputStream
 o flush
 public void flush()
the flush method does nothing in this implementation.

Overrides:
flush in class OutputStream
 o getStringsWritten
 public Vector getStringsWritten()
returns a vector containing all the strings written to the stream.

 o write
 public void write(byte data[])
save a string of data to the stream vector.

Overrides:
write in class OutputStream
 o write
 public void write(byte data[],
                   int start,
                   int offset)
save a string of data to the stream vector.

Overrides:
write in class OutputStream
 o write
 public void write(int i)
save an intger to the stream vector.

Overrides:
write in class OutputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index