io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>public class FadvisedChunkedFile
extends io.netty.handler.stream.ChunkedFile
| Constructor | Description |
|---|---|
FadvisedChunkedFile(java.io.RandomAccessFile file,
long position,
long count,
int chunkSize,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
java.lang.String identifier) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
io.netty.buffer.ByteBuf |
readChunk(io.netty.buffer.ByteBufAllocator allocator) |
public FadvisedChunkedFile(java.io.RandomAccessFile file,
long position,
long count,
int chunkSize,
boolean manageOsCache,
int readaheadLength,
org.apache.hadoop.io.ReadaheadPool readaheadPool,
java.lang.String identifier)
throws java.io.IOException
java.io.IOExceptionpublic io.netty.buffer.ByteBuf readChunk(io.netty.buffer.ByteBufAllocator allocator)
throws java.lang.Exception
readChunk in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>readChunk in class io.netty.handler.stream.ChunkedFilejava.lang.Exceptionpublic void close()
throws java.lang.Exception
close in interface io.netty.handler.stream.ChunkedInput<io.netty.buffer.ByteBuf>close in class io.netty.handler.stream.ChunkedFilejava.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.