Package 

Class ByteBufferRewinder

    • Method Summary

      Modifier and Type Method Description
      ByteBuffer rewindAndGet() Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).
      void cleanup() Called when this rewinder is no longer needed and can be cleaned up.
      • Methods inherited from class com.mobwith.imgmodule.load.data.DataRewinder

        rewindAndGet
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.