public class BufferedChannelOutput extends Object implements PackOutput
| Constructor and Description |
|---|
BufferedChannelOutput(int bufferSize) |
BufferedChannelOutput(WritableByteChannel channel) |
BufferedChannelOutput(WritableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
BufferedChannelOutput |
flush()
If implementation has been buffering data, it should flush those buffers now.
|
void |
reset(WritableByteChannel channel) |
PackOutput |
writeByte(byte value)
Produce a single byte
|
PackOutput |
writeBytes(byte[] data,
int offset,
int length)
Produce binary data
|
PackOutput |
writeBytes(ByteBuffer data)
Produce binary data
|
PackOutput |
writeDouble(double value)
Produce an 8-byte IEEE 754 "double format" floating-point number
|
PackOutput |
writeInt(int value)
Produce a 4-byte signed integer
|
PackOutput |
writeLong(long value)
Produce an 8-byte signed integer
|
PackOutput |
writeShort(short value)
Produce a 4-byte signed integer
|
public BufferedChannelOutput(int bufferSize)
public BufferedChannelOutput(WritableByteChannel channel)
public BufferedChannelOutput(WritableByteChannel channel, int bufferSize)
public void reset(WritableByteChannel channel)
public BufferedChannelOutput flush() throws IOException
PackOutputflush in interface PackOutputIOExceptionpublic PackOutput writeBytes(ByteBuffer data) throws IOException
PackOutputwriteBytes in interface PackOutputIOExceptionpublic PackOutput writeBytes(byte[] data, int offset, int length) throws IOException
PackOutputwriteBytes in interface PackOutputIOExceptionpublic PackOutput writeByte(byte value) throws IOException
PackOutputwriteByte in interface PackOutputIOExceptionpublic PackOutput writeShort(short value) throws IOException
PackOutputwriteShort in interface PackOutputIOExceptionpublic PackOutput writeInt(int value) throws IOException
PackOutputwriteInt in interface PackOutputIOExceptionpublic PackOutput writeLong(long value) throws IOException
PackOutputwriteLong in interface PackOutputIOExceptionpublic PackOutput writeDouble(double value) throws IOException
PackOutputwriteDouble in interface PackOutputIOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.