All Packages Class Hierarchy This Package Previous Next Index
Object | +----java.io.OutputStream
Applications that need to define a subclass of
OutputStream
must always provide at least a method
that writes one byte of output.
b.length
bytes from the specified byte array
to this output stream.
len
bytes from the specified byte array
starting at offset off
to this output stream.
public OutputStream()
public void close() throws IOException
The close
method of OutputStream
does nothing.
public void flush() throws IOException
The flush
method of OutputStream
does nothing.
public abstract void write(int b) throws IOException
Subclasses of OutputStream
must provide an
implementation for this method.
byte
.
public void write(byte b) throws IOException
b.length
bytes from the specified byte array
to this output stream.
The write
method of OutputStream
calls
the write
method of three arguments with the three
arguments b
, 0
, and
b.length
.
public void write(byte b, int off, int len) throws IOException
len
bytes from the specified byte array
starting at offset off
to this output stream.
The write
method of OutputStream
calls
the write method of one argument on each of the bytes to be
written out. Subclasses are encouraged to override this method and
provide a more efficient implementation.
All Packages Class Hierarchy This Package Previous Next Index