Package org.apache.commons.vfs2.impl
Class FileContentInfoFilenameFactory
- java.lang.Object
-
- org.apache.commons.vfs2.impl.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 Summary
Constructors Constructor Description FileContentInfoFilenameFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileContentInfo
create(FileContent fileContent)
Creates a FileContentInfo for a the given FileContent.
-
-
-
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 interfaceFileContentInfoFactory
- Parameters:
fileContent
- Use this FileContent to create a matching FileContentInfo- Returns:
- a FileContentInfo for the given FileContent.
-
-