public class BoundedRangeFileInputStream extends InputStream
Constructor and Description |
---|
BoundedRangeFileInputStream(FSDataInputStream in,
long offset,
long length)
Constructor
|
public BoundedRangeFileInputStream(FSDataInputStream in, long offset, long length)
in
- The FSDataInputStream we connect to.offset
- Begining offset of the region.length
- Length of the region.
The actual length of the region may be smaller if (off_begin +
length) goes beyond the end of FS input stream.public int available() throws IOException
available
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
Copyright © 2018 Apache Software Foundation. All Rights Reserved.