org.apache.hadoop.hdfs.server.datanode.fsdataset
Class LengthInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.hadoop.hdfs.server.datanode.fsdataset.LengthInputStream
- All Implemented Interfaces:
- Closeable
public class LengthInputStream
- extends FilterInputStream
An input stream with length.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LengthInputStream
public LengthInputStream(InputStream in,
long length)
- Create an stream.
- Parameters:
in
- the underlying input stream.length
- the length of the stream.
getLength
public long getLength()
- Returns:
- the length.
getWrappedStream
public InputStream getWrappedStream()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.