private static class BlockBasedFile.LazyChannel extends java.lang.Object implements java.lang.AutoCloseable, DfsBlockCache.ReadableChannelSupplier
Modifier and Type | Field and Description |
---|---|
private DfsReader |
ctx |
private DfsPackDescription |
desc |
private PackExt |
ext |
private ReadableChannel |
rc |
Constructor and Description |
---|
LazyChannel(DfsReader ctx,
DfsPackDescription desc,
PackExt ext) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ReadableChannel |
get() |
private final DfsReader ctx
private final DfsPackDescription desc
private final PackExt ext
private ReadableChannel rc
LazyChannel(DfsReader ctx, DfsPackDescription desc, PackExt ext)
public ReadableChannel get() throws java.io.IOException
get
in interface DfsBlockCache.ReadableChannelSupplier
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException