Class FileContentInfoFilenameFactory

  • All Implemented Interfaces:
    FileContentInfoFactory

    public class FileContentInfoFilenameFactory
    extends java.lang.Object
    implements FileContentInfoFactory
    The FileContentInfoFilenameFactory.

    Uses the filename extension to determine the content-type. The content-encoding is not resolved.

    • Constructor Detail

      • FileContentInfoFilenameFactory

        public FileContentInfoFilenameFactory()
    • Method Detail

      • create

        public FileContentInfo create​(FileContent fileContent)
        Description copied from interface: FileContentInfoFactory
        Creates a FileContentInfo for a the given FileContent.
        Specified by:
        create in interface FileContentInfoFactory
        Parameters:
        fileContent - Use this FileContent to create a matching FileContentInfo
        Returns:
        a FileContentInfo for the given FileContent.