Closeable, AutoCloseablepublic final class RandomAccessStream extends InputStream
| Constructor | Description |
|---|---|
RandomAccessStream(InputStream inputstream) |
Constructs a RandomAccessStream from an InputStream.
|
RandomAccessStream(RandomAccessFile ras) |
Constructs a RandomAccessStream from an RandomAccessFile.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
getFilePointer() |
|
long |
getLongFilePointer() |
|
int |
read() |
|
int |
read(byte[] bytes,
int off,
int len) |
|
double |
readDouble() |
|
float |
readFloat() |
|
void |
readFully(byte[] bytes) |
|
void |
readFully(byte[] bytes,
int len) |
|
int |
readInt() |
|
long |
readLong() |
|
short |
readShort() |
|
void |
seek(int loc) |
|
void |
seek(long loc) |
available, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTopublic RandomAccessStream(InputStream inputstream)
public RandomAccessStream(RandomAccessFile ras)
public int getFilePointer()
throws IOException
IOExceptionpublic long getLongFilePointer()
throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic final void readFully(byte[] bytes)
throws IOException
IOExceptionpublic final void readFully(byte[] bytes,
int len)
throws IOException
IOExceptionpublic void seek(long loc)
throws IOException
IOExceptionpublic void seek(int loc)
throws IOException
IOExceptionpublic final int readInt()
throws IOException
IOExceptionpublic final long readLong()
throws IOException
IOExceptionpublic final double readDouble()
throws IOException
IOExceptionpublic final short readShort()
throws IOException
IOExceptionpublic final float readFloat()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class InputStreamIOException