org.openjena.riot
Class ContentType

java.lang.Object
  extended by org.openjena.riot.ContentType

public class ContentType
extends java.lang.Object

Content Type - Parsed version of content type / MIME type


Method Summary
static ContentType create(java.lang.String contentType)
           
static ContentType create(java.lang.String contentType, java.lang.String charset)
           
static ContentType createConst(java.lang.String contentType, java.lang.String dftCharset)
          Create a media type, with a default charset
 java.lang.String getCharset()
           
 java.lang.String getContentType()
           
 java.lang.String getDftCharset()
           
static ContentType parse(java.lang.String x)
          Split Content-Type into MIME type and charset
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

parse

public static ContentType parse(java.lang.String x)
Split Content-Type into MIME type and charset


createConst

public static ContentType createConst(java.lang.String contentType,
                                      java.lang.String dftCharset)
Create a media type, with a default charset


create

public static ContentType create(java.lang.String contentType,
                                 java.lang.String charset)

create

public static ContentType create(java.lang.String contentType)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getContentType

public java.lang.String getContentType()

getCharset

public java.lang.String getCharset()

getDftCharset

public java.lang.String getDftCharset()


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.