Package io.deephaven.io.streams
Class BufferedChannelReader
- java.lang.Object
-
- io.deephaven.io.streams.BufferedChannelReader
-
public class BufferedChannelReader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BufferedChannelReader(java.lang.String filename, int blockSize, int readSize)Guarantees that each buffer from readNext() will have remaining() >= blockSize [that is, until it starts winding down on the end of the file] When it needs to refresh, it will read <= readSize from the channel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.nio.ByteBuffergetBb()intgetRead()java.nio.ByteBufferreadNext()
-
-
-
Constructor Detail
-
BufferedChannelReader
public BufferedChannelReader(java.lang.String filename, int blockSize, int readSize)Guarantees that each buffer from readNext() will have remaining() >= blockSize [that is, until it starts winding down on the end of the file] When it needs to refresh, it will read <= readSize from the channel
-
-