org.apache.hadoop.hbase.io
Class DataInputInputStream
java.lang.Object
java.io.InputStream
org.apache.hadoop.hbase.io.DataInputInputStream
- All Implemented Interfaces:
- Closeable
@InterfaceAudience.Private
public class DataInputInputStream
- extends InputStream
An InputStream that wraps a DataInput.
- See Also:
DataOutputOutputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataInputInputStream
public DataInputInputStream(DataInput in)
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 © 2007–2016 The Apache Software Foundation. All rights reserved.