Package | Description |
---|---|
com.j256.simplemagic |
Top level code used externally.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.fromFileExtension(String fileExtension)
Return the type associated with the file-extension string or
OTHER if not found. |
static ContentType |
ContentType.fromMimeType(String mimeType)
Return the type associated with the mime-type string or
OTHER if not found. |
ContentType |
ContentInfo.getContentType()
Returns the internal enumerated type associated with the content or
OTHER if not known. |
static ContentType |
ContentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
ContentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ContentInfo(ContentType contentType) |
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.