CryptoFSDataInputStream, CryptoInputStream, FSDataInputStream@Private
@Evolving
public interface HasEnhancedByteBufferAccess
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
read(ByteBufferPool factory,
int maxLength,
java.util.EnumSet<ReadOption> opts) |
Get a ByteBuffer containing file data.
|
void |
releaseBuffer(java.nio.ByteBuffer buffer) |
Release a ByteBuffer which was created by the enhanced ByteBuffer read
function.
|
java.nio.ByteBuffer read(ByteBufferPool factory, int maxLength, java.util.EnumSet<ReadOption> opts) throws java.io.IOException, java.lang.UnsupportedOperationException
factory - If this is non-null, it will be used to create a fallback
ByteBuffer when the stream itself cannot create one.maxLength - The maximum length of buffer to return. We may return a buffer
which is shorter than this.opts - Options to use when reading.java.io.IOException - if there was an error reading.java.lang.UnsupportedOperationException - if factory was null,
and we needed an external byte buffer.java.lang.UnsupportedOperationException - will never be thrown
unless the factory argument is null.void releaseBuffer(java.nio.ByteBuffer buffer)
buffer - The ByteBuffer to release.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.