/** * Write a single byte to the stream. * * @param b * the byte to write * @throws IOException * if an I/O error occurs */ @Override public void write(final int b) throws IOException { write(new byte[] { (byte) b }, 0, 1); }
/** * Write bytes from the specified byte array to the stream. * * @param b * the byte array containing the bytes to write * @throws IOException * if an I/O error occurs */ @Override public void write(final byte[] b) throws IOException { write(b, 0, b.length); }
/** * Write bytes from the specified byte array to the stream. * * @param b * the byte array containing the bytes to write * @throws IOException * if an I/O error occurs */ @Override public void write(final byte[] b) throws IOException { write(b, 0, b.length); }
/** * Write a single byte to the stream. * * @param b * the byte to write * @throws IOException * if an I/O error occurs */ @Override public void write(final int b) throws IOException { write(new byte[] { (byte) b }, 0, 1); }