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
   public OutputStream();

   // public instance methods
   public abstract void write(int b) throws java.io.IOException;
   public void write(byte[] b) throws java.io.IOException;
   public void write(byte[] b, int off, int len)
       throws java.io.IOException;
   public void flush() throws java.io.IOException;
   public void close() 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.