org.openjena.riot
Class ContentType

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

public class ContentType
extends Object

Content Type - Parsed version of content type / MIME type


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

Method Detail

parse

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


createConst

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


create

public static ContentType create(String contentType,
                                 String charset)

create

public static ContentType create(String contentType)

toString

public String toString()
Overrides:
toString in class Object

getContentType

public String getContentType()

getCharset

public String getCharset()

getDftCharset

public String getDftCharset()


Licenced under the Apache License, Version 2.0