Package 

Interface DataRewinder


  • 
    public interface DataRewinder<T>
    
                        

    Responsible for rewinding a stream like data types.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface DataRewinder.Factory

      A factory interface for producing individual s.

    • Method Summary

      Modifier and Type Method Description
      abstract T rewindAndGet() Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).
      abstract void cleanup() Called when this rewinder is no longer needed and can be cleaned up.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rewindAndGet

        @NonNull() abstract T rewindAndGet()

        Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).

      • cleanup

         abstract 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.