|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.util.MIMEType
public class MIMEType
This is a simple MIME type implementation. The main purpose of this class is a mapping filename extension <-> MIME type.
Constructor Summary | |
---|---|
MIMEType(java.lang.String type)
The consutructor. |
Method Summary | |
---|---|
static MIMEType |
getByFileExtension(java.lang.String extension)
This method tries to create a new MIME type from the given file extension (without the dot '.'). |
java.lang.String |
getContentType()
Get the full content-type string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MIMEType(java.lang.String type)
Method Detail |
---|
public java.lang.String getContentType()
public java.lang.String toString()
toString
in class java.lang.Object
public static MIMEType getByFileExtension(java.lang.String extension)
extension
- The filename extension (search is not case sensitive).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |