- private static class RConsole implements bsh.ConsoleInterface {
- public Console back;
- Reader in = new StringReader("");
-
- public void error(Object msg) {
- if(back != null)
- back.error(msg);
- }
-
- public void print(Object msg) {
- if(back != null)
- back.print(msg);
- }
-
- public void println(Object msg) {
- if(back != null)
- back.println(msg);
- }
-
- public PrintStream getOut() {
- if(back == null)
- return(null);
- return(back.getOut());
- }
-
- public PrintStream getErr() {
- if(back == null)
- return(null);
- return(back.getErr());
- }
-
- public Reader getIn() {
- if(back == null)
- return(null);
- return(in);
- }
- }
-