org.apache.solr.hadoop

## Class DataInputInputStream

- java.lang.Object
- - java.io.InputStream
  - - org.apache.solr.hadoop.DataInputInputStream

- All Implemented Interfaces:
    Closeable, AutoCloseable

      @InterfaceAudience.Private
      public class DataInputInputStream
      extends InputStream

  An InputStream that wraps a DataInput.
  See Also:
    `DataOutputOutputStream`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataInputInputStream(DataInput in)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static InputStream` | `constructInputStream(DataInput in)` Construct an InputStream from the given DataInput.
    `int` | `read()`

    - ### Methods inherited from class java.io.InputStream

      `available, close, mark, markSupported, read, read, reset, skip`

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

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

- - ### Constructor Detail

    - #### DataInputInputStream

          public DataInputInputStream(DataInput in)

  - ### Method Detail

    - #### constructInputStream

          public static InputStream constructInputStream(DataInput in)

      Construct an InputStream from the given DataInput. If 'in' is already an InputStream, simply returns it. Otherwise, wraps it in an InputStream.
      Parameters:
        `in` - the DataInput to wrap
      Returns:
        an InputStream instance that reads from 'in'

    - #### read

          public int read()
                   throws IOException

      Specified by:
        `read` in class `InputStream`
      Throws:
        `IOException`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.