public abstract class ContentTypeResolver extends Object
ContentTypeResolver uses the spotter library, if it is on the
classpath. If spotter could not be found, the resolver tries to use apache tika. If spotter and tika could not be
found, the FileNameMap of the jdk is used.| Modifier | Constructor and Description |
|---|---|
protected |
ContentTypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
detect(String filename)
Detects the content type of the filename.
|
public abstract String detect(String filename)
resolve(String) instead.filename - name of file or pathCopyright © 2018. All rights reserved.