|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.envs.SystemLogEnv
public class SystemLogEnv
the same as SystemEnv, but in addition set input, output and log streams to appropriative files.
| Constructor Summary | |
|---|---|
SystemLogEnv()
|
|
SystemLogEnv(Term t)
t must be nil, or must look like |
|
| Method Summary | |
|---|---|
void |
close()
called before shutown of term system |
Reader |
getInput()
get input |
PrintWriter |
getLog()
get log stream |
PrintWriter |
getOutput()
get standard output |
void |
setInput(Reader input)
set input |
void |
setLog(PrintWriter log)
set log stream |
void |
setOutput(PrintWriter output)
set Output Stream. |
void |
show(TermWareException ex)
show exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemLogEnv()
public SystemLogEnv(Term t)
throws IOException,
TermWareException
env(t_1,t_2,t_3)
where
t_1 - string or atom 'system', which means standart input, or name of
input file.
t_2 - string or atom 'system', which means standart output, or name of
output file.
t_3 - string or atom 'system', which means standart error output, or
name of log file.
IOException
TermWareException| Method Detail |
|---|
public PrintWriter getOutput()
getOutput in interface IEnvpublic void setOutput(PrintWriter output)
public Reader getInput()
getInput in interface IEnv
public void setInput(Reader input)
throws IOException
IOExceptionpublic PrintWriter getLog()
getLog in interface IEnvpublic void setLog(PrintWriter log)
public void show(TermWareException ex)
show in interface IEnvpublic void close()
IEnv
close in interface IEnv
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||