Code example for PrintStream

Methods: write

0
		PrintStream out = checkAccess();
 
		if (out == this) {
			super.write(b);
		} else { 
			out.write(b);
		} 
	} 
 
	private PrintStream checkAccess() {
		PrintStream out = Container.getComponent(IHostManager.class).getRobotOutputStream();
 
		return (out == null) ? this : out;
	} 
}