public class ByteBufferRewinder extends Object implements DataRewinder<ByteBuffer>
ByteBuffer
s.限定符和类型 | 类和说明 |
---|---|
static class |
ByteBufferRewinder.Factory
Factory for
ByteBufferRewinder . |
构造器和说明 |
---|
ByteBufferRewinder(ByteBuffer buffer) |
限定符和类型 | 方法和说明 |
---|---|
void |
cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
|
ByteBuffer |
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).
|
public ByteBufferRewinder(ByteBuffer buffer)
@NonNull public ByteBuffer rewindAndGet()
DataRewinder
rewindAndGet
在接口中 DataRewinder<ByteBuffer>
public void cleanup()
DataRewinder
The underlying data may still be in use and should not be closed or invalidated.
cleanup
在接口中 DataRewinder<ByteBuffer>