Common Methods of the OutputStream class:

Cards (4)

  • void close() = closes the output stream and releases any system resources associated with the stream.
  • void flush() = flushes the output stream; if any bytes are buffered, they will be written.
  • void write(byte[] b) = Writes all bytes to the output stream from the specified byte array.
  • void write(byte [] b, int off, int len) = Writes bytes to the output stream from the specified byte array starting at offset position off for a length of len characters.