Class AbstractStorageProvider

    • Constructor Detail

      • AbstractStorageProvider

        protected AbstractStorageProvider()
        Sole constructor.
    • Method Detail

      • store

        public final Storage store​(java.io.InputStream in)
                            throws java.io.IOException
        This implementation creates a StorageOutputStream by calling createStorageOutputStream() and copies the content of the given input stream to that output stream. It then calls StorageOutputStream.toStorage() on the output stream and returns this object.
        Specified by:
        store in interface StorageProvider
        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.