Package 

Interface Encoder


  • 
    public interface Encoder<T>
    
                        

    An interface for writing data to some persistent data store (i.e. a local File cache).

    • Method Summary

      Modifier and Type Method Description
      abstract boolean encode(@NonNull() T data, @NonNull() File file, @NonNull() Options options) Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.
      • Methods inherited from class java.lang.Object

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

      • encode

         abstract boolean encode(@NonNull() T data, @NonNull() File file, @NonNull() Options options)

        Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.

        Parameters:
        data - The data to write.
        file - The file to write the data to.
        options - The set of options to apply when encoding.