/*** * Writes a byte to the stream. Note that a call to this method * might not actually write a byte to the underlying stream until a * subsequent character is written, from which it can be determined if * a NETASCII line separator was encountered. * This is transparent to the programmer and is only mentioned for * completeness. * * @param ch The byte to write. * @throws IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(int ch) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { out.write(ch); return ; } __write(ch); }
/*** * Writes a byte array to the stream. * * @param buffer The byte array to write. * @throws IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(byte buffer[]) throws IOException { write(buffer, 0, buffer.length); }
output = new FromNetASCIIOutputStream(output);
output = new FromNetASCIIOutputStream(output);
output = new FromNetASCIIOutputStream(output);
/*** * Writes a number of bytes from a byte array to the stream starting from * a given offset. * * @param buffer The byte array to write. * @param offset The offset into the array at which to start copying data. * @param length The number of bytes to write. * @throws IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(byte buffer[], int offset, int length) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { // FilterOutputStream method is very slow. //super.write(buffer, offset, length); out.write(buffer, offset, length); return ; } while (length-- > 0) { __write(buffer[offset++]); } }
/*** * Writes a byte array to the stream. * <p> * @param buffer The byte array to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ public synchronized void write(byte buffer[]) throws IOException { write(buffer, 0, buffer.length); }
os_ = new FromNetASCIIOutputStream(os_);
/*** * Writes a number of bytes from a byte array to the stream starting from * a given offset. * <p> * @param buffer The byte array to write. * @param offset The offset into the array at which to start copying data. * @param length The number of bytes to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(byte buffer[], int offset, int length) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { // FilterOutputStream method is very slow. //super.write(buffer, offset, length); out.write(buffer, offset, length); return ; } while (length-- > 0) __write(buffer[offset++]); }
/*** * Writes a byte array to the stream. * <p> * @param buffer The byte array to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(byte buffer[]) throws IOException { write(buffer, 0, buffer.length); }
os_ = new FromNetASCIIOutputStream(os_);
/*** * Writes a number of bytes from a byte array to the stream starting from * a given offset. * <p> * @param buffer The byte array to write. * @param offset The offset into the array at which to start copying data. * @param length The number of bytes to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ public synchronized void write(byte buffer[], int offset, int length) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { // FilterOutputStream method is very slow. //super.write(buffer, offset, length); out.write(buffer, offset, length); return ; } while (length-- > 0) __write(buffer[offset++]); }
/*** * Writes a byte to the stream. Note that a call to this method * might not actually write a byte to the underlying stream until a * subsequent character is written, from which it can be determined if * a NETASCII line separator was encountered. * This is transparent to the programmer and is only mentioned for * completeness. * <p> * @param ch The byte to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ public synchronized void write(int ch) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { out.write(ch); return ; } __write(ch); }
/*** * Writes a byte to the stream. Note that a call to this method * might not actually write a byte to the underlying stream until a * subsequent character is written, from which it can be determined if * a NETASCII line separator was encountered. * This is transparent to the programmer and is only mentioned for * completeness. * <p> * @param ch The byte to write. * @exception IOException If an error occurs while writing to the underlying * stream. ***/ @Override public synchronized void write(int ch) throws IOException { if (FromNetASCIIInputStream._noConversionRequired) { out.write(ch); return ; } __write(ch); }