All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ifarchive.glk.StreamWriter

java.lang.Object
   |
   +----java.io.Writer
           |
           +----org.ifarchive.glk.StreamWriter

public class StreamWriter
extends Writer
This is a Writer that works on a Glk stream. The GLK stream must be open for output.


Constructor Index

 o StreamWriter(Stream)
Create a stream writer.

Method Index

 o close()
Close the stream.
 o flush()
Flush bytes written to this stream.
 o getStream()
Returns the GLK stream associated with this StreamReader
 o write(char)
Write a single character to this stream.
 o write(char[], int, int)
Write bytes to this stream.

Constructors

 o StreamWriter
 public StreamWriter(Stream s)
Create a stream writer. The underlying stream must have been opened in write or append mode.

Methods

 o getStream
 public Stream getStream()
Returns the GLK stream associated with this StreamReader

 o close
 public void close()
Close the stream.

Overrides:
close in class Writer
 o flush
 public void flush()
Flush bytes written to this stream. Does nothing.

Overrides:
flush in class Writer
See Also:
flush
 o write
 public void write(char cbuf[],
                   int off,
                   int len)
Write bytes to this stream.

Parameters:
cbuf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write
Overrides:
write in class Writer
See Also:
write
 o write
 public void write(char ch)
Write a single character to this stream.

Parameters:
ch - The character to output

All Packages  Class Hierarchy  This Package  Previous  Next  Index