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()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
FileContentInfo |
create(FileContent fileContent)
Creates a FileContentInfo for the given FileContent.
|
public FileContentInfoFilenameFactory()
public FileContentInfo create(FileContent fileContent)
FileContentInfoFactorycreate in interface FileContentInfoFactoryfileContent - Use this FileContent to create a matching FileContentInfoCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.