public final class MIMEType extends Object
| Modifier and Type | Field and Description |
|---|---|
static MIMEType |
ALL |
static MIMEType |
APPLICATION_OCTET_STREAM |
| Constructor and Description |
|---|
MIMEType(String MIMEType) |
MIMEType(String primaryType,
String subType) |
| Modifier and Type | Method and Description |
|---|---|
MIMEType |
addParameter(String name,
String value)
Adds a parameter to the MIMEType.
|
boolean |
equals(Object object) |
boolean |
equals(Object o,
boolean includeParameters)
Deprecated.
Use
equals(Object) or equalsWithoutParameters(Object) instead. |
boolean |
equalsWithoutParameters(Object o) |
String |
getCharset() |
String |
getParameter(String name) |
List<Parameter> |
getParameters() |
String |
getPrimaryType() |
String |
getSubType() |
int |
hashCode() |
boolean |
includes(MIMEType mimeType) |
String |
toString() |
static MIMEType |
valueOf(String MIMEType) |
static MIMEType |
valueOf(String primaryType,
String subType) |
public static final MIMEType ALL
public static final MIMEType APPLICATION_OCTET_STREAM
public MIMEType(String MIMEType)
public MIMEType addParameter(String name, String value)
name - name of parametervalue - value of parameterpublic String getSubType()
public String getPrimaryType()
public String getCharset()
public boolean equalsWithoutParameters(Object o)
@Deprecated public boolean equals(Object o, boolean includeParameters)
public boolean includes(MIMEType mimeType)
Copyright © 2008-2013. All Rights Reserved.