← 返回首页
OutputStream (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. OutputStream()
  5. Method Details
    1. nullOutputStream()
    2. write(int)
    3. write(byte[])
    4. write(byte[], int, int)
    5. flush()
    6. close()
Hide sidebar  Show sidebar

Class OutputStream

java.lang.Object
java.io.OutputStream
All Implemented Interfaces: Closeable, Flushable, AutoCloseable Direct Known Subclasses: ByteArrayOutputStream, FileOutputStream, FilterOutputStream, ObjectOutputStream, PipedOutputStream
public abstract class OutputStream extends Object implements Closeable, Flushable
This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.

Applications that need to define a subclass of OutputStream must always provide at least a method that writes one byte of output.

Since: 1.0 See Also:

Scripting on this page tracks web page traffic, but does not change the content in any way.