public interface MimeTyper
Objects implementing this interface know how to obtain the MIME type and charset for a file name.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getCharset(java.lang.String pFileName)
Returns the charset for the specified file name, or null if charset cannot
be determined.
|
java.lang.String |
getMimeType(java.lang.String pFileName)
Returns the MIME type for the specified file name, or null if
the MIME type cannot be determined.
|
static final java.lang.String CLASS_VERSION
java.lang.String getMimeType(java.lang.String pFileName)
default java.lang.String getCharset(java.lang.String pFileName)
The default implementation in this interface returns null.
Implementations in the sub-class should determine the charset for the given file name.