public class FileContentInfoFilenameFactory extends Object implements FileContentInfoFactory
Uses the filename extension to determine the content-type. The content-encoding is not resolved.
| Constructor and Description |
|---|
FileContentInfoFilenameFactory() |
| Modifier and Type | Method and Description |
|---|---|
FileContentInfo |
create(FileContent fileContent)
Creates a FileContentInfo for a the given FileContent.
|
public FileContentInfo create(FileContent fileContent)
FileContentInfoFactorycreate in interface FileContentInfoFactoryfileContent - Use this FileContent to create a matching FileContentInfoCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.