ua.gradsoft.termware.envs
Class SystemEnv

java.lang.Object
  extended by ua.gradsoft.termware.envs.SystemEnv
All Implemented Interfaces:
IEnv

public class SystemEnv
extends Object
implements IEnv

environment, which write output to System.out , read input from System.in and write log to System.err


Constructor Summary
SystemEnv()
           
 
Method Summary
 void close()
          flush output and error stream
 Reader getInput()
          return System.in
 PrintWriter getLog()
          return System.err
 PrintWriter getOutput()
          return System.out
 void show(TermWareException ex)
          print exceptions on standard output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemEnv

public SystemEnv()
Method Detail

getOutput

public PrintWriter getOutput()
return System.out

Specified by:
getOutput in interface IEnv

getInput

public Reader getInput()
return System.in

Specified by:
getInput in interface IEnv

getLog

public PrintWriter getLog()
return System.err

Specified by:
getLog in interface IEnv

show

public void show(TermWareException ex)
print exceptions on standard output.

Specified by:
show in interface IEnv

close

public void close()
flush output and error stream

Specified by:
close in interface IEnv