public final class FileInput extends Object implements ByteBufferBackedDataInput
| Modifier and Type | Class and Description |
|---|---|
class |
FileInput.Crc32CheckingFileInput
Checking of CRC32.
|
| Constructor and Description |
|---|
FileInput(FileIO io,
ByteBufferExpander buf) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
void |
ensure(int requested)
ensure that requested count of byte is available in data input and will try to load data if not
|
long |
position() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
seek(long pos) |
int |
skipBytes(int n) |
FileInput.Crc32CheckingFileInput |
startRead(boolean skipCheck) |
public FileInput(FileIO io, ByteBufferExpander buf) throws IOException
io - FileIO to read from.buf - Buffer for reading blocks of data into.IOExceptionpublic void seek(long pos)
throws IOException
pos - Position in bytes from file begin.IOExceptionpublic ByteBuffer buffer()
buffer in interface ByteBufferBackedDataInputpublic void ensure(int requested)
throws IOException
ensure in interface ByteBufferBackedDataInputrequested - Requested number of bytes.IOException - If failed.public long position()
public void readFully(@NotNull
byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(@NotNull
byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic FileInput.Crc32CheckingFileInput startRead(boolean skipCheck)
skipCheck - If CRC check should be skipped.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017