public class ProtoStreamDataInput extends Object implements DataInput
DataInput facade for a RawProtoStreamReader allowing serializers to read protobuf messages.
This implementation intentionally does not conform to the binary layout prescribed by DataInput.| Constructor and Description |
|---|
ProtoStreamDataInput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
ProtoStreamDataInput(ProtoStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] bytes) |
void |
readFully(byte[] buffer,
int offset,
int length) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int bytes) |
public ProtoStreamDataInput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader)
public ProtoStreamDataInput(ProtoStreamReader reader)
public void readFully(byte[] bytes)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] buffer,
int offset,
int length)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int bytes)
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 DataInputIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.