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.
| 构造器和说明 |
|---|
BufferReaderWriterUtil() |
public static void readByteBufferFully(FileChannel channel, ByteBuffer b, long position) throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.