public static class FileInput.Crc32CheckingFileInput extends Object implements ByteBufferBackedDataInput, AutoCloseable
| Constructor and Description |
|---|
Crc32CheckingFileInput(FileInput delegate,
boolean skipCheck) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
void |
close() |
void |
ensure(int requested)
ensure that requested count of byte is available in data input and will try to load data if not
|
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() |
int |
skipBytes(int n) |
public Crc32CheckingFileInput(FileInput delegate, boolean skipCheck)
public void ensure(int requested)
throws IOException
ensure in interface ByteBufferBackedDataInputrequested - Requested number of bytes.IOException - If failed.public void close()
throws Exception
close in interface AutoCloseableExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic 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 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 ByteBuffer buffer()
buffer in interface ByteBufferBackedDataInput
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020