public final class RandomAccessStream extends InputStream
Constructor and Description |
---|
RandomAccessStream(InputStream inputstream)
Constructs a RandomAccessStream from an InputStream.
|
RandomAccessStream(RandomAccessFile ras)
Constructs a RandomAccessStream from an RandomAccessFile.
|
Modifier and Type | Method and 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, reset, skip
public RandomAccessStream(InputStream inputstream)
public RandomAccessStream(RandomAccessFile ras)
public int getFilePointer() throws IOException
IOException
public long getLongFilePointer() throws IOException
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int off, int len) throws IOException
read
in class InputStream
IOException
public final void readFully(byte[] bytes) throws IOException
IOException
public final void readFully(byte[] bytes, int len) throws IOException
IOException
public void seek(long loc) throws IOException
IOException
public void seek(int loc) throws IOException
IOException
public final int readInt() throws IOException
IOException
public final long readLong() throws IOException
IOException
public final double readDouble() throws IOException
IOException
public final short readShort() throws IOException
IOException
public final float readFloat() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2015. All Rights Reserved.