FilterOutputStream.write
Class Overview | Class Members |
This Package |
All Packages
public void write( int b ) throws IOException
Parameters
- b
- the byte.
Description
Writes the specified byte to this output stream.
The write method of FilterOutputStream
calls the write method of its underlying output stream.
Exceptions
IOException
if an I/O error occurs.
Overrides
write in class OutputStream
public void write( byte b[] ) throws IOException
Parameters
- b
- the data to be written.
Description
Writes b.length bytes to this output stream.
The write method of FilterOutputStream
calls its write method of three arguments with the
arguments b, 0, and
b.length.
Note that this method does not call the one-argument
write method of its underlying stream with the single
argument b.
Exceptions
IOException
if an I/O error occurs.
Overrides
write in class OutputStream
See Also
write
public 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 output stream.
The write method of FilterOutputStream
calls the write method of one argument on each
byte to output.
Note that this method does not call the write method
of its underlying input stream with the same arguments. Subclasses
of FilterOutputStream should provide a more efficient
implementation of this method.
Exceptions
IOException
if an I/O error occurs.
Overrides
write in class OutputStream
See Also
write