Interface ContentDataFactory

All Known Implementing Classes:
FilesystemContentDataFactory

public interface ContentDataFactory
Build a ContentData out of a given ContentStore and a given File within that store
Since:
4.0
  • Method Details

    • 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