1 package tests.jfun.models; 2 3 import java.io.PrintStream ; 4 5 public class SimpleLogger { 6 public class Holder{ 7 public final PrintStream out; 8 9 public Holder(PrintStream out) { 10 this.out = out; 11 } 12 13 } 14 private PrintStream out; 15 public Holder holder; 16 public SimpleLogger(PrintStream out){ 17 this.holder = new Holder(out); 18 this.out = out; 19 } 20 public SimpleLogger(){ 21 this.out = System.out; 22 this.holder = new Holder(out); 23 } 24 public PrintStream getOut() { 25 return out; 26 } 27 public void setOut(PrintStream out) { 28 this.out = out; 29 this.holder = new Holder(out); 30 } 31 32 } 33 | Popular Tags |