public class WriteChannel extends Object implements AutoCloseable
| Constructor and Description |
|---|
WriteChannel(WritableByteChannel out) |
| Modifier and Type | Method and Description |
|---|---|
long |
align() |
void |
close() |
long |
getCurrentPosition() |
static ByteBuffer |
serialize(FBSerializable writer) |
void |
write(ArrowBuf buffer) |
long |
write(byte[] buffer) |
long |
write(ByteBuffer buffer) |
long |
write(FBSerializable writer,
boolean withSizePrefix) |
long |
writeIntLittleEndian(int v) |
long |
writeZeros(int zeroCount) |
public WriteChannel(WritableByteChannel out)
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic long getCurrentPosition()
public long write(byte[] buffer)
throws IOException
IOExceptionpublic long writeZeros(int zeroCount)
throws IOException
IOExceptionpublic long align()
throws IOException
IOExceptionpublic long write(ByteBuffer buffer) throws IOException
IOExceptionpublic long writeIntLittleEndian(int v)
throws IOException
IOExceptionpublic void write(ArrowBuf buffer) throws IOException
IOExceptionpublic long write(FBSerializable writer, boolean withSizePrefix) throws IOException
IOExceptionpublic static ByteBuffer serialize(FBSerializable writer)
Copyright © 2018 The Apache Software Foundation. All rights reserved.