public class ProtoStreamObjectInput extends Object implements ObjectInput
ObjectInput facade for a RawProtoStreamReader allowing externalizers to read protobuf messages.
This implementation intentionally does not conform to the binary layout prescribed by ObjectInput.| Constructor and Description |
|---|
ProtoStreamObjectInput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] bytes) |
int |
read(byte[] buffer,
int offset,
int length) |
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() |
Object |
readObject() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
long |
skip(long bytes) |
int |
skipBytes(int bytes) |
public ProtoStreamObjectInput(org.infinispan.protostream.ImmutableSerializationContext context,
org.infinispan.protostream.RawProtoStreamReader 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 DataInputIOExceptionpublic Object readObject() throws IOException
readObject in interface ObjectInputIOExceptionpublic int read()
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] bytes)
throws IOException
read in interface ObjectInputIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in interface ObjectInputIOExceptionpublic long skip(long bytes)
throws IOException
skip in interface ObjectInputIOExceptionpublic int available()
throws IOException
available in interface ObjectInputIOExceptionpublic void close()
throws IOException
close in interface ObjectInputclose in interface AutoCloseableIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.