public class FileChannelReaderUtil extends java.lang.Object implements FileReaderUtil
Constructor and Description |
---|
FileChannelReaderUtil(java.io.FileInputStream stream,
java.nio.channels.FileChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
position() |
void |
position(int position) |
byte |
readByte() |
byte |
readByte(int position) |
double |
readDouble() |
double |
readDouble(int position) |
float |
readFloat() |
float |
readFloat(int position) |
int |
readInt() |
int |
readInt(int position) |
short |
readShort() |
short |
readShort(int position) |
long |
remaining() |
public FileChannelReaderUtil(java.io.FileInputStream stream, java.nio.channels.FileChannel channel)
public byte readByte() throws java.io.IOException
readByte
in interface FileReaderUtil
java.io.IOException
public byte readByte(int position) throws java.io.IOException
readByte
in interface FileReaderUtil
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface FileReaderUtil
java.io.IOException
public double readDouble(int position) throws java.io.IOException
readDouble
in interface FileReaderUtil
java.io.IOException
public float readFloat(int position) throws java.io.IOException
readFloat
in interface FileReaderUtil
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface FileReaderUtil
java.io.IOException
public int readInt(int position) throws java.io.IOException
readInt
in interface FileReaderUtil
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface FileReaderUtil
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface FileReaderUtil
java.io.IOException
public short readShort(int position) throws java.io.IOException
readShort
in interface FileReaderUtil
java.io.IOException
public void position(int position) throws java.io.IOException
position
in interface FileReaderUtil
java.io.IOException
public void close() throws java.io.IOException
close
in interface FileReaderUtil
java.io.IOException
public long position() throws java.io.IOException
position
in interface FileReaderUtil
java.io.IOException
public long remaining() throws java.io.IOException
remaining
in interface FileReaderUtil
java.io.IOException