public class RandomAccessFileInputStream extends InputStream
Constructor and Description |
---|
RandomAccessFileInputStream(File file,
long begin,
long end)
Create a RandomAccessFileInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
mark, markSupported, read, reset, skip
public RandomAccessFileInputStream(File file, long begin, long end) throws IOException
file
- source filebegin
- the beginning position of the file, inclusiveend
- the end position of the file, exclusiveIOException
- If an I/O error occurspublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
Copyright © 2016. All rights reserved.