Interface ContentDataFactory

    • Method Detail

      • createContentData

        ContentData createContentData​(ContentStore store,
                                      File contentFile)
        Create a ContentData by combining the given ContentStore's root location and the File's path within that store. The given file must therefore be accessible within the content store's configured root location. The encoding and mimetype will be guessed from the given file.
        Parameters:
        store - The ContentStore in which the file should be
        contentFile - The File to check
        Returns:
        the constructed ContentData