public class FileContentInfoFilenameFactory extends Object implements FileContentInfoFactory
Uses the file name 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)
FileContentInfoFactory
create
in interface FileContentInfoFactory
fileContent
- Use this FileContent to create a matching FileContentInfoCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.