Interface StorageProvider

    • Method Detail

      • store

        Storage store​(java.io.InputStream in)
               throws java.io.IOException
        Stores the contents of the given InputStream.
        Parameters:
        in - stream containing the data to store.
        Returns:
        a Storage instance that can be used to retrieve the stored content.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • createStorageOutputStream

        StorageOutputStream createStorageOutputStream()
                                               throws java.io.IOException
        Creates a StorageOutputStream where data to be stored can be written to. Subsequently the user can call toStorage() on that object to get a Storage instance that holds the data that has been written.
        Returns:
        a StorageOutputStream where data can be written to.
        Throws:
        java.io.IOException - if an I/O error occurs.