- All Known Implementing Classes:
ByteBufInput
public interface PackInput
This is what
PackStream
uses to ingest data, implement this on top of any data source of your choice to
deserialize the stream with PackStream
.-
Method Summary
Modifier and TypeMethodDescriptionbyte
peekByte()
Get the next byte without forwarding the internal pointerbyte
readByte()
Consume one bytevoid
readBytes
(byte[] into, int offset, int toRead) Consume a specified number of bytesdouble
Consume an 8-byte IEEE 754 "double format" floating-point numberint
readInt()
Consume a 4-byte signed integerlong
readLong()
Consume an 8-byte signed integershort
Consume a 2-byte signed integer
-
Method Details
-
readByte
Consume one byte- Throws:
IOException
-
readShort
Consume a 2-byte signed integer- Throws:
IOException
-
readInt
Consume a 4-byte signed integer- Throws:
IOException
-
readLong
Consume an 8-byte signed integer- Throws:
IOException
-
readDouble
Consume an 8-byte IEEE 754 "double format" floating-point number- Throws:
IOException
-
readBytes
Consume a specified number of bytes- Throws:
IOException
-
peekByte
Get the next byte without forwarding the internal pointer- Throws:
IOException
-