IOUtils.NullOutputStream (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.io, class: IOUtils, class: NullOutputStream

Package org.apache.hadoop.io

# Class IOUtils.NullOutputStream

java.lang.Object
java.io.OutputStream
org.apache.hadoop.io.IOUtils.NullOutputStream

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

Enclosing class:
  IOUtils

public static class IOUtils.NullOutputStream extends OutputStream
The /dev/null of OutputStreams.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NullOutputStream()`

- ## 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

  - ### NullOutputStream

    public NullOutputStream()

- ## Method Details

  - ### write

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

  - ### write

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