public class ByteBufferBackedDataInputImpl extends Object implements ByteBufferBackedDataInput
| Constructor and Description |
|---|
ByteBufferBackedDataInputImpl() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
ByteBufferBackedDataInput |
buffer(ByteBuffer buf) |
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 ByteBufferBackedDataInput buffer(ByteBuffer buf)
buf - New buffer.public ByteBuffer buffer()
buffer in interface ByteBufferBackedDataInputpublic void ensure(int requested)
throws IOException
ensure in interface ByteBufferBackedDataInputrequested - Requested number of bytes.IOException - If failed.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 DataInputIOException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020