public interface IChunkSupplier
Modifier and Type | Method and Description |
---|---|
Chunk |
getNextChunk(byte[] reusableBuffer)
Get the input for the next chunk.
|
Chunk getNextChunk(byte[] reusableBuffer) throws CouldNotLoadRecordingException, IOException
Note that the actual reading of the complete chunk data is handled by the Chunk
object together with the correct IChunkLoader
. The chunk loader must be allowed to
complete the data reading from the supplier input before this method may be called again,
otherwise the input will not be at the correct position.
reusableBuffer
- A byte array to be used for storing chunk data. While the returned chunk object is
used for loading events, this byte array must not be written to by anyone except
the chunk object.CouldNotLoadRecordingException
IOException
Copyright © 2020. All rights reserved.