public interface PackInput
PackStream uses to ingest data, implement this on top of any data source of your choice to
deserialize the stream with PackStream.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreData()
True if there is at least one more consumable byte
|
byte |
peekByte()
Get the next byte without forwarding the internal pointer
|
byte |
readByte()
Consume one byte
|
PackInput |
readBytes(byte[] into,
int offset,
int toRead)
Consume a specified number of bytes
|
double |
readDouble()
Consume an 8-byte IEEE 754 "double format" floating-point number
|
int |
readInt()
Consume a 4-byte signed integer
|
long |
readLong()
Consume an 8-byte signed integer
|
short |
readShort()
Consume a 2-byte signed integer
|
boolean hasMoreData()
throws IOException
IOExceptionbyte readByte()
throws IOException
IOExceptionshort readShort()
throws IOException
IOExceptionint readInt()
throws IOException
IOExceptionlong readLong()
throws IOException
IOExceptiondouble readDouble()
throws IOException
IOExceptionPackInput readBytes(byte[] into, int offset, int toRead) throws IOException
IOExceptionbyte peekByte()
throws IOException
IOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.