@Override protected void setOutputStream(OutputStream out) throws SecurityException { super.setOutputStream(System.out); } }
@Override protected void setOutputStream(final OutputStream out) throws SecurityException { super.setOutputStream(System.out); } };
@Override protected synchronized void setOutputStream(OutputStream out) throws SecurityException { // Can't do this via constructor super.setOutputStream(System.out); } });
@Override protected void setOutputStream(final OutputStream out) throws SecurityException { super.setOutputStream(System.out); } };
@Override protected synchronized void setOutputStream(final OutputStream out) throws SecurityException { super.setOutputStream(new FilterOutputStream(System.out) { // don't close System.out to not loose important things like exceptions @Override public void write(final int b) throws IOException { System.out.write(b); } @Override public void write(final byte[] b) throws IOException { System.out.write(b); } @Override public void write(final byte[] b, final int off, final int len) throws IOException { System.out.write(b, off, len); } @Override public void flush() throws IOException { System.out.flush(); } @Override public void close() throws IOException { flush(); } }); } }
@Override protected synchronized void setOutputStream(OutputStream out) throws SecurityException { if ((out == stdout) || (out == stderr)) { super.setOutputStream(new NoCloseOutputStream(out)); } else { super.setOutputStream(out); } } };
protected void setOutputStream(OutputStream out) throws SecurityException { super.setOutputStream(System.out); // kitten killed here :-( } }