Package org.apache.commons.vfs2.impl
Class FileContentInfoFilenameFactory
java.lang.Object
org.apache.commons.vfs2.impl.FileContentInfoFilenameFactory
- All Implemented Interfaces:
FileContentInfoFactory
The FileContentInfoFilenameFactory.
Uses the file name extension to determine the content-type. The content-encoding is not resolved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(FileContent fileContent) Creates a FileContentInfo for the given FileContent.
-
Constructor Details
-
FileContentInfoFilenameFactory
public FileContentInfoFilenameFactory()Constructs a new instance.
-
-
Method Details
-
create
Description copied from interface:FileContentInfoFactory
Creates a FileContentInfo for the given FileContent.- Specified by:
create
in interfaceFileContentInfoFactory
- Parameters:
fileContent
- Use this FileContent to create a matching FileContentInfo- Returns:
- a FileContentInfo for the given FileContent.
-