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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(FileContent fileContent) Creates a FileContentInfo for the given FileContent.
- 
Constructor Details- 
FileContentInfoFilenameFactorypublic FileContentInfoFilenameFactory()Constructs a new instance.
 
- 
- 
Method Details- 
createDescription copied from interface:FileContentInfoFactoryCreates a FileContentInfo for the given FileContent.- Specified by:
- createin interface- FileContentInfoFactory
- Parameters:
- fileContent- Use this FileContent to create a matching FileContentInfo
- Returns:
- a FileContentInfo for the given FileContent.
 
 
-