org.apache.jena.atlas.web
Class ContentType
java.lang.Object
org.apache.jena.atlas.web.ContentType
public class ContentType
- extends Object
A restricted view of MediaType
parse
@Deprecated
public static ContentType parse(String string)
- Deprecated. use create(String)
create
public static ContentType create(String string)
create
public static ContentType create(String ctString,
String charset)
getContentType
public String getContentType()
getCharset
public String getCharset()
getType
public String getType()
getSubType
public String getSubType()
toHeaderString
public String toHeaderString()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
Licenced under the Apache License, Version 2.0