Module org.apache.arrow.vector
Package org.apache.arrow.vector.util
Class ByteArrayReadableSeekableByteChannel
java.lang.Object
org.apache.arrow.vector.util.ByteArrayReadableSeekableByteChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,SeekableByteChannel,WritableByteChannel
A
SeekableByteChannel backed by a byte array.-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayReadableSeekableByteChannel(byte[] byteArray) Construct a new object using the given byteArray as a backing store. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()longposition()position(long newPosition) intread(ByteBuffer dst) longsize()truncate(long size) intwrite(ByteBuffer src)
-
Constructor Details
-
ByteArrayReadableSeekableByteChannel
public ByteArrayReadableSeekableByteChannel(byte[] byteArray) Construct a new object using the given byteArray as a backing store.
-
-
Method Details
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin interfaceSeekableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
size
- Specified by:
sizein interfaceSeekableByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceSeekableByteChannel- Throws:
IOException
-