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.
-
stringsWritten
-
-
SimpleStream()
-
-
close()
- the close method does nothing in this implementation.
-
flush()
- the flush method does nothing in this implementation.
-
getStringsWritten()
- returns a vector containing all the strings written to the stream.
-
write(byte[])
- save a string of data to the stream vector.
-
write(byte[], int, int)
- save a string of data to the stream vector.
-
write(int)
- save an intger to the stream vector.
stringsWritten
private Vector stringsWritten
SimpleStream
public SimpleStream()
close
public void close()
- the close method does nothing in this implementation.
- Overrides:
- close in class OutputStream
flush
public void flush()
- the flush method does nothing in this implementation.
- Overrides:
- flush in class OutputStream
getStringsWritten
public Vector getStringsWritten()
- returns a vector containing all the strings written to the stream.
write
public void write(byte data[])
- save a string of data to the stream vector.
- Overrides:
- write in class OutputStream
write
public void write(byte data[],
int start,
int offset)
- save a string of data to the stream vector.
- Overrides:
- write in class OutputStream
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