pnuts.tools
Class Console

java.lang.Object
  extended by pnuts.tools.Console
Direct Known Subclasses:
PnutsConsole

public class Console
extends java.lang.Object

General purpose Console


Field Summary
protected  ConsoleUI ui
           
 
Constructor Summary
Console()
          Constructor
 
Method Summary
 void enter(char[] cbuf, int offset, int size)
          Sends the specified characters to the scripting engine
 void enter(java.lang.String str)
          Sends the specified string to the scripting engine
 ConsoleUI getConsoleUI()
          Gets the UI object of this console
 java.io.Reader getReader()
          Gets the Reader from this console
 java.io.Writer getWriter()
          Gets the OutputStream from this console
 void setConsoleUI(ConsoleUI ui)
          Sets the UI object of this console
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ui

protected ConsoleUI ui
Constructor Detail

Console

public Console()
Constructor

Method Detail

setConsoleUI

public void setConsoleUI(ConsoleUI ui)
Sets the UI object of this console


getConsoleUI

public ConsoleUI getConsoleUI()
Gets the UI object of this console


getReader

public java.io.Reader getReader()
Gets the Reader from this console


getWriter

public java.io.Writer getWriter()
Gets the OutputStream from this console


enter

public void enter(java.lang.String str)
           throws java.io.IOException
Sends the specified string to the scripting engine

Throws:
java.io.IOException

enter

public void enter(char[] cbuf,
                  int offset,
                  int size)
           throws java.io.IOException
Sends the specified characters to the scripting engine

Throws:
java.io.IOException