-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.data.DataRewinder
public class ByteBufferRewinder implements DataRewinder<ByteBuffer>
Rewinds ByteBuffers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classByteBufferRewinder.FactoryFactory for com.mobwith.imgmodule.load.resource.bytes.ByteBufferRewinder.
-
Constructor Summary
Constructors Constructor Description ByteBufferRewinder(ByteBuffer buffer)
-
Method Summary
Modifier and Type Method Description ByteBufferrewindAndGet()Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data). voidcleanup()Called when this rewinder is no longer needed and can be cleaned up. -
-
Constructor Detail
-
ByteBufferRewinder
ByteBufferRewinder(ByteBuffer buffer)
-
-
Method Detail
-
rewindAndGet
@NonNull() ByteBuffer rewindAndGet()
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).
-
cleanup
void cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
The underlying data may still be in use and should not be closed or invalidated.
-
-
-
-