Interface DataRewinder<T>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  DataRewinder.Factory<T>
      A factory interface for producing individual DataRewinders.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cleanup()
      Called when this rewinder is no longer needed and can be cleaned up.
      T rewindAndGet()
      Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
    • Method Detail

      • rewindAndGet

        @NonNull
        T rewindAndGet()
                throws java.io.IOException
        Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
        Returns:
        An object pointing to the wrapped data.
        Throws:
        java.io.IOException
      • 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.