public class ChunkedInput extends Object implements PackInput
PackInput that accepts data fragments and exposes them as a continuous stream to PackStream.| Constructor and Description |
|---|
ChunkedInput() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(io.netty.buffer.ByteBuf chunk) |
ChunkedInput |
clear() |
void |
close() |
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
|
public ChunkedInput clear()
public void append(io.netty.buffer.ByteBuf chunk)
public boolean hasMoreData()
throws IOException
PackInputhasMoreData in interface PackInputIOExceptionpublic byte peekByte()
throws IOException
PackInputpeekByte in interface PackInputIOExceptionpublic byte readByte()
throws IOException
PackInputreadByte in interface PackInputIOExceptionpublic short readShort()
throws IOException
PackInputreadShort in interface PackInputIOExceptionpublic int readInt()
throws IOException
PackInputreadInt in interface PackInputIOExceptionpublic long readLong()
throws IOException
PackInputreadLong in interface PackInputIOExceptionpublic double readDouble()
throws IOException
PackInputreadDouble in interface PackInputIOExceptionpublic PackInput readBytes(byte[] into, int offset, int toRead) throws IOException
PackInputreadBytes in interface PackInputIOExceptionpublic void close()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.