java.io.Closeable, java.lang.AutoCloseablepublic class BoundedRangeFileInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
BoundedRangeFileInputStream(FSDataInputStream in,
long offset,
long length) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
void |
mark(int readlimit) |
|
boolean |
markSupported() |
|
int |
read() |
|
int |
read(byte[] b) |
|
int |
read(byte[] b,
int off,
int len) |
|
void |
reset() |
|
long |
skip(long n) |
public BoundedRangeFileInputStream(FSDataInputStream in, long offset, long length)
in - The FSDataInputStream we connect to.offset - Beginning 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 java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamCopyright © 2008–2025 Apache Software Foundation. All rights reserved.