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.
-
StreamWriter(Stream)
- Create a stream writer.
-
close()
- Close the stream.
-
flush()
- Flush bytes written to this stream.
-
getStream()
- Returns the GLK stream associated with this StreamReader
-
write(char)
- Write a single character to this stream.
-
write(char[], int, int)
- Write bytes to this stream.
StreamWriter
public StreamWriter(Stream s)
- Create a stream writer. The underlying stream must have been
opened in write or append mode.
getStream
public Stream getStream()
- Returns the GLK stream associated with this StreamReader
close
public void close()
- Close the stream.
- Overrides:
- close in class Writer
flush
public void flush()
- Flush bytes written to this stream. Does nothing.
- Overrides:
- flush in class Writer
- See Also:
- flush
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
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