Name
java.io.OutputStream
Synopsis
This abstract class is the superclass of all types of output streams.
Classes that extend OutputStream
must provide an
implementation for the abstract write()
method.
Other methods include flush()
, which flushes the
output buffer, and close()
, which closes the
output stream and releases any resources associated with it.
public abstract classOutputStream
{ // constructor publicOutputStream
(); // public instance methods public abstract voidwrite
(int b) throws java.io.IOException; public voidwrite
(byte[] b) throws java.io.IOException; public voidwrite
(byte[] b, int off, int len) throws java.io.IOException; public voidflush
() throws java.io.IOException; public voidclose
() throws java.io.IOException; }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.