|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fu_berlin.ties.io.MimeTypeWithCharset
A simple wrapper for the MIME type and the character set of a document.
Method Summary | |
static MimeTypeWithCharset |
determineMimeTypeWithCharset(String contentTypeHeader)
Factory method that creates an instance from the information contained in the "Content-Type" header field of an URL. |
String |
getCharset()
Returns the character set. |
String |
getMimeType()
Returns the MIME type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static MimeTypeWithCharset determineMimeTypeWithCharset(String contentTypeHeader)
contentTypeHeader
- the "Content-Type" header of an URL, as returned
by URLConnection.getContentType()
; if null
,
the MIME type is set to null
and the default HTTP charset
is assumed
public String getCharset()
public String getMimeType()
null
if the MIME type is unknown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |