简介
/**
* 这个抽象类是所有表示字节输出流的类的超类。
* 输出流接受输出字节并将其发送到某个接收器。
* <p>
* 需要定义OutputStream子类的应用程序必须
* 始终至少提供一个write(int)方法。
*
* @author Arthur van Hoff
* @see java.io.BufferedOutputStream
* @see java.io.ByteArrayOutputStream
* @see java.io.DataOutputStream
* @see java.io.FilterOutputStream
* @see java.io.InputStream
* @see java.io.OutputStream#write(int)
* @since JDK1.0
*/
public abstract class OutputStream implements Closeable, Flushable
![](https://img-blog.csdnimg.cn/2020110615514720.png)
3个write方法
/**
* 将指定的字节写入此输出流。
* 写的一般约定是将一个字节写入输出流。
* 要写入的字节是参数b的8个低阶位,而忽略b的24个高阶位。
* <p>
* OutputStream的子类必须提供此方法的实现。
*
* @param b the <code>byte</code>.
* @exception IOException if an I/O error occu