org.zmpp.vm
Interface OutputStream


public interface OutputStream

This interface defines an output stream in the Z-machine.

Version:
1.0
Author:
Wei-ju Wu

Method Summary
 boolean isEnabled()
          Determine, if this stream is enabled.
 void newline()
          Prints a newline.
 void print(String str)
          Prints a Unicode string to the stream.
 void setEnabled(boolean flag)
          Enables/disables this output stream.
 

Method Detail

print

void print(String str)
Prints a Unicode string to the stream.

Parameters:
str - the string to print

newline

void newline()
Prints a newline.


setEnabled

void setEnabled(boolean flag)
Enables/disables this output stream.

Parameters:
flag - true to enable, false to disable

isEnabled

boolean isEnabled()
Determine, if this stream is enabled.

Returns:
true if enabled, false if disabled


Copyright © 2005 . All Rights Reserved.