public class DataReader extends Object implements Closeable
Constructor and Description |
---|
DataReader(SeekableByteChannel channel,
ByteOrder order,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static DataReader |
createDataReader(SeekableByteChannel channel,
ByteOrder order) |
long |
position() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readFully(byte[] b) |
int |
readFully3(byte[] b,
int off,
int len) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
long |
setPosition(long newPos) |
long |
size() |
int |
skipBytes(int n) |
public DataReader(SeekableByteChannel channel, ByteOrder order, int bufferSize)
public static DataReader createDataReader(SeekableByteChannel channel, ByteOrder order)
public int readFully3(byte[] b, int off, int len) throws IOException
IOException
public int skipBytes(int n) throws IOException
IOException
public byte readByte() throws IOException
IOException
public short readShort() throws IOException
IOException
public char readChar() throws IOException
IOException
public int readInt() throws IOException
IOException
public long readLong() throws IOException
IOException
public float readFloat() throws IOException
IOException
public double readDouble() throws IOException
IOException
public long position() throws IOException
IOException
public long setPosition(long newPos) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long size() throws IOException
IOException
public int readFully(byte[] b) throws IOException
IOException
Copyright © 2019. All rights reserved.