Package ipsk.net
Class MIMEType
- java.lang.Object
-
- ipsk.net.MIMEType
-
public class MIMEType extends java.lang.Object
- Author:
- klausj
-
-
Field Summary
Fields Modifier and Type Field Description static MIMEType
APPLICATION_JSON
static MIMEType
APPLICATION_XML
static MIMEType
AUDIO_WAVE
static MIMEType
TEXT_XML
static java.lang.String
TYPE_AUDIO
-
Constructor Summary
Constructors Constructor Description MIMEType(java.lang.String type, java.lang.String subType, java.lang.String fileExtension)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.lang.String
getFileExtension()
java.lang.String
getSubType()
java.lang.String
getType()
boolean
matches(MIMEType otherMimeType)
static MIMEType
parse(java.lang.String mimeTypeString)
int
precedenceCompare(MIMEType o)
java.lang.String
toString()
-
-
-
Field Detail
-
TYPE_AUDIO
public static final java.lang.String TYPE_AUDIO
- See Also:
- Constant Field Values
-
TEXT_XML
public static MIMEType TEXT_XML
-
APPLICATION_XML
public static MIMEType APPLICATION_XML
-
APPLICATION_JSON
public static MIMEType APPLICATION_JSON
-
AUDIO_WAVE
public static MIMEType AUDIO_WAVE
-
-
Method Detail
-
getFileExtension
public java.lang.String getFileExtension()
-
parse
public static MIMEType parse(java.lang.String mimeTypeString) throws ParserException
- Throws:
ParserException
-
matches
public boolean matches(MIMEType otherMimeType)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
getType
public java.lang.String getType()
-
getSubType
public java.lang.String getSubType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
precedenceCompare
public int precedenceCompare(MIMEType o)
-
-