public class RandomAccessFileInputStream extends java.io.InputStream implements SeekableInput
| Modifier | Constructor and Description |
|---|---|
protected |
RandomAccessFileInputStream(java.io.RandomAccessFile raf) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
beginThreadAccess() |
static RandomAccessFileInputStream |
build(java.io.File file) |
void |
close() |
void |
endThreadAccess() |
long |
getAbsolutePosition() |
java.io.InputStream |
getInputStream() |
long |
getLength() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int length) |
void |
reset() |
void |
seekAbsolute(long absolutePosition) |
void |
seekEnd() |
void |
seekRelative(long relativeOffset) |
long |
skip(long n) |
protected RandomAccessFileInputStream(java.io.RandomAccessFile raf)
public static RandomAccessFileInputStream build(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic int read()
throws java.io.IOException
read in interface SeekableInputread in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer)
throws java.io.IOException
read in interface SeekableInputread in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in interface SeekableInputread in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface SeekableInputclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
available in interface SeekableInputavailable in class java.io.InputStreampublic void mark(int readLimit)
mark in interface SeekableInputmark in class java.io.InputStreampublic boolean markSupported()
markSupported in interface SeekableInputmarkSupported in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in interface SeekableInputreset in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in interface SeekableInputskip in class java.io.InputStreamjava.io.IOExceptionpublic void seekAbsolute(long absolutePosition)
throws java.io.IOException
seekAbsolute in interface SeekableInputjava.io.IOExceptionpublic void seekRelative(long relativeOffset)
throws java.io.IOException
seekRelative in interface SeekableInputjava.io.IOExceptionpublic void seekEnd()
throws java.io.IOException
seekEnd in interface SeekableInputjava.io.IOExceptionpublic long getAbsolutePosition()
throws java.io.IOException
getAbsolutePosition in interface SeekableInputjava.io.IOExceptionpublic long getLength()
throws java.io.IOException
getLength in interface SeekableInputjava.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in interface SeekableInputpublic void beginThreadAccess()
beginThreadAccess in interface SeekableInputpublic void endThreadAccess()
endThreadAccess in interface SeekableInput