/** * Writes the specified byte to this output stream. * * @param b * The byte to be written. * @exception IOException * if an error occurs. */ @Override public void write(final int b) throws IOException { checkThreshold(1); getStream().write(b); written++; }
/** * Writes <code>b.length</code> bytes from the specified byte array to this output stream. * * @param b * The array of bytes to be written. * @exception IOException * if an error occurs. */ public void write(byte b[]) throws IOException { checkThreshold(b.length); getStream().write(b); written += b.length; }
/** * Writes the specified byte to this output stream. * * @param b * The byte to be written. * @exception IOException * if an error occurs. */ public void write(int b) throws IOException { checkThreshold(1); getStream().write(b); written++; }
/** * Writes <code>b.length</code> bytes from the specified byte array to this output stream. * * @param b * The array of bytes to be written. * @exception IOException * if an error occurs. */ @Override public void write(byte b[]) throws IOException { checkThreshold(b.length); getStream().write(b); written += b.length; }
/** * Writes <code>b.length</code> bytes from the specified byte array to this output stream. * * @param b * The array of bytes to be written. * @exception IOException * if an error occurs. */ @Override public void write(final byte b[]) throws IOException { checkThreshold(b.length); getStream().write(b); written += b.length; }
/** * Writes the specified byte to this output stream. * * @param b * The byte to be written. * @exception IOException * if an error occurs. */ @Override public void write(int b) throws IOException { checkThreshold(1); getStream().write(b); written++; }
/** * Writes <code>len</code> bytes from the specified byte array starting at offset * <code>off</code> to this output stream. * * @param b * The byte array from which the data will be written. * @param off * The start offset in the byte array. * @param len * The number of bytes to write. * @exception IOException * if an error occurs. */ public void write(byte b[], int off, int len) throws IOException { checkThreshold(len); getStream().write(b, off, len); written += len; }
/** * Writes <code>len</code> bytes from the specified byte array starting at offset * <code>off</code> to this output stream. * * @param b * The byte array from which the data will be written. * @param off * The start offset in the byte array. * @param len * The number of bytes to write. * @exception IOException * if an error occurs. */ @Override public void write(byte b[], int off, int len) throws IOException { checkThreshold(len); getStream().write(b, off, len); written += len; }
/** * Writes <code>len</code> bytes from the specified byte array starting at offset * <code>off</code> to this output stream. * * @param b * The byte array from which the data will be written. * @param off * The start offset in the byte array. * @param len * The number of bytes to write. * @exception IOException * if an error occurs. */ @Override public void write(final byte b[], final int off, final int len) throws IOException { checkThreshold(len); getStream().write(b, off, len); written += len; }