public class MediaType extends Object
Modifier | Constructor and Description |
---|---|
protected |
MediaType(String type,
String subtype,
LinkedHashMap<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
String |
getCharset() |
int |
getParameterCount() |
String |
getParameterValue(String parameter) |
String |
getSubtype() |
String |
getType() |
static MediaType |
parseMediaType(StringReader input)
Parses a MediaType value, either from an HTTP header or from an application.
|
String |
toString() |
String |
toStringNoCharset() |
protected MediaType(String type, String subtype, LinkedHashMap<String,String> parameters)
public String getType()
public String getSubtype()
public String getCharset()
public int getParameterCount()
public String toStringNoCharset()
public static MediaType parseMediaType(StringReader input) throws IOException
input
- a reader over the header textIOException
- if there was a problem reading the inputCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.