public class SimpleFileInput extends Object implements FileInput
FileInput.Crc32CheckingFileInput| Modifier and Type | Field and Description |
|---|---|
protected FileIO |
io
I/O interface for read/write operations with file
|
| Constructor and Description |
|---|
SimpleFileInput(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
|
FileIO |
io()
File I/O.
|
long |
position() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(@NotNull byte[] b) |
void |
readFully(@NotNull 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) |
protected FileIO io
public SimpleFileInput(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
seek in interface FileInputpos - 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
@NotNull byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(@NotNull
@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)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021