Class BlockBasedFile.LazyChannel
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.BlockBasedFile.LazyChannel
- All Implemented Interfaces:
AutoCloseable,DfsBlockCache.ReadableChannelSupplier
- Enclosing class:
- BlockBasedFile
private static class BlockBasedFile.LazyChannel
extends Object
implements AutoCloseable, DfsBlockCache.ReadableChannelSupplier
A supplier of readable channel that opens the channel lazily.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DfsReaderprivate final DfsPackDescriptionprivate final PackExtprivate ReadableChannel -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ctx
-
desc
-
ext
-
rc
-
-
Constructor Details
-
LazyChannel
LazyChannel(DfsReader ctx, DfsPackDescription desc, PackExt ext)
-
-
Method Details
-
get
- Specified by:
getin interfaceDfsBlockCache.ReadableChannelSupplier- Returns:
- ReadableChannel
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-