Code example for PrintStream

Methods: write

0
		new OutputStream() 
		{ 
			@Override 
			public void write(int oneByte) throws IOException 
			{ 
				System.out.write(oneByte); 
			} 
		} 
	); 
	 
	/** 
	 *  
	 * @param p 
	 * @return 
	 */ 
	public boolean setPrintStream(PrintStream p)
	{ 
		if (p != null)
		{ 
			out = p;
			return true;