ByteBufferOutputStream (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.util, class: ByteBufferOutputStream

Package org.apache.hadoop.hdfs.util

# Class ByteBufferOutputStream

java.lang.Object
java.io.OutputStream
org.apache.hadoop.hdfs.util.ByteBufferOutputStream

All Implemented Interfaces:
  `Closeable`, `Flushable`, `AutoCloseable`

@Private @Stable public class ByteBufferOutputStream extends OutputStream
OutputStream that writes into a `ByteBuffer`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ByteBufferOutputStream(ByteBuffer buf)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `write(byte[] b, int off, int len)`
  `void`
  `write(int b)`

  ### Methods inherited from class java.io.OutputStream

  `close, flush, nullOutputStream, write`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ByteBufferOutputStream

    public ByteBufferOutputStream(ByteBuffer buf)

- ## Method Details

  - ### write

    public void write(int b) throws IOException
    Specified by:
      `write` in class `OutputStream`
    Throws:
      `IOException`

  - ### write

    public void write(byte[] b, int off, int len) throws IOException
    Overrides:
      `write` in class `OutputStream`
    Throws:
      `IOException`