InputStreamRewinder

class InputStreamRewinder : DataRewinder<T>

Implementation for InputStreams that rewinds streams by wrapping them in a buffered stream.

Constructors

Link copied to clipboard
open fun InputStreamRewinder(is: InputStream, byteArrayPool: ArrayPool)

Types

Link copied to clipboard
class Factory : DataRewinder.Factory<T>

Functions

Link copied to clipboard
open fun cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
Link copied to clipboard
open fun fixMarkLimits()
Link copied to clipboard
open fun rewindAndGet(): InputStream
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).