IOStreamPair (Apache Hadoop HDFS Client 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.protocol.datatransfer, class: IOStreamPair

Package org.apache.hadoop.hdfs.protocol.datatransfer

# Class IOStreamPair

java.lang.Object
org.apache.hadoop.hdfs.protocol.datatransfer.IOStreamPair

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

@Private public class IOStreamPair extends Object implements Closeable
A little struct class to wrap an InputStream and an OutputStream.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final InputStream`
  `in`
  `final OutputStream`
  `out`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IOStreamPair(InputStream in, OutputStream out)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`

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

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

- ## Field Details

  - ### in

    public final InputStream in

  - ### out

    public final OutputStream out

- ## Constructor Details

  - ### IOStreamPair

    public IOStreamPair(InputStream in, OutputStream out)

- ## Method Details

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`