public final class BufferReaderWriterUtil extends Object
The encoding is the same across FileChannel and ByteBuffer, so this class can write to a file and read from the byte buffer that results from mapping this file to memory.
| Constructor and Description |
|---|
BufferReaderWriterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readByteBufferFully(FileChannel channel,
ByteBuffer b,
long position) |
public static void readByteBufferFully(FileChannel channel, ByteBuffer b, long position) throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.