/** * @see java.io.OutputStream.write(int) */ public void write(int b) throws IOException { byte[] b2 = {(byte) b}; write(b2, 0, 1); }
PrintStream out = new PrintStream(new NGOutputStream(sockout, NGConstants.CHUNKTYPE_STDOUT)); PrintStream err = new PrintStream(new NGOutputStream(sockout, NGConstants.CHUNKTYPE_STDERR)); PrintStream exit = new PrintStream(new NGOutputStream(sockout, NGConstants.CHUNKTYPE_EXIT));
/** * @see java.io.OutputStream.write(byte[]) */ public void write(byte[] b) throws IOException { write(b, 0, b.length); }