Package io.ebeaninternal.api
Class BinaryReadContext
- java.lang.Object
-
- io.ebeaninternal.api.BinaryReadContext
-
public class BinaryReadContext extends Object
Context used to read binary format messages.
-
-
Constructor Summary
Constructors Constructor Description BinaryReadContext(byte[] byteData)
Create with protocol 0 and byte data.BinaryReadContext(DataInputStream in)
Create with protocol version and DataInputStream data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataInputStream
in()
boolean
readBoolean()
int
readInt()
long
readLong()
String
readUTF()
-
-
-
Constructor Detail
-
BinaryReadContext
public BinaryReadContext(byte[] byteData)
Create with protocol 0 and byte data.
-
BinaryReadContext
public BinaryReadContext(DataInputStream in)
Create with protocol version and DataInputStream data.
-
-
Method Detail
-
in
public DataInputStream in()
-
readBoolean
public boolean readBoolean() throws IOException
- Throws:
IOException
-
readInt
public int readInt() throws IOException
- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Throws:
IOException
-
readLong
public long readLong() throws IOException
- Throws:
IOException
-
-