BufferedOutputStream.write
Class Overview | Class Members |
This Package |
All Packages
public synchronized void write( int b ) throws IOException
Parameters
- b
- the byte to be written.
Description
Writes the specified byte to this buffered output stream.
Exceptions
IOException
if an I/O error occurs.
Overrides
write in class FilterOutputStream
public synchronized void write( byte b[],
int off,
int len ) throws IOException
Parameters
- b
- the data.
- off
- the start offset in the data.
- len
- the number of bytes to write.
Description
Writes len bytes from the specified byte array
starting at offset off to this buffered output stream.
Ordinarily this method stores bytes from the given array into this
stream's buffer, flushing the buffer to the underlying output stream as
needed. If the requested length is at least as large as this stream's
buffer, however, then this method will flush the buffer and write the
bytes directly to the underlying output stream. Thus redundant
BufferedOutputStreams will not copy data unnecessarily.
Exceptions
IOException
if an I/O error occurs.
Overrides
write in class FilterOutputStream