public final class InputStreamRewinder extends Object implements DataRewinder<InputStream>
InputStream
s that rewinds streams by wrapping them in a buffered
stream.限定符和类型 | 类和说明 |
---|---|
static class |
InputStreamRewinder.Factory
Factory for producing
InputStreamRewinder s from InputStream s. |
限定符和类型 | 方法和说明 |
---|---|
void |
cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
|
InputStream |
rewindAndGet()
Rewinds the wrapped data back to the position it was at when this object was instantiated and
returns the re-wound data (or a wrapper for the re-wound data).
|
@NonNull public InputStream rewindAndGet() throws IOException
DataRewinder
rewindAndGet
在接口中 DataRewinder<InputStream>
IOException
public void cleanup()
DataRewinder
The underlying data may still be in use and should not be closed or invalidated.
cleanup
在接口中 DataRewinder<InputStream>