congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MediaType.parse
Code IndexAdd Tabnine to your IDE (free)

How to use
parse
method
in
org.apache.jena.atlas.web.MediaType

Best Java code snippets using org.apache.jena.atlas.web.MediaType.parse (Showing top 10 results out of 315)

origin: apache/jena

public static MediaType create(String contentType, String charset) {
  ParsedMediaType mediaType = parse(contentType) ;
  if ( charset != null )
    mediaType.params.put(strCharset, charset) ;
  return new MediaType(mediaType) ;
}
origin: apache/jena

public MediaRange(String string)
{  
  super(MediaType.parse(string)) ;  
  set_q() ;
}

origin: apache/jena

public static MediaType create(String string) {
  if ( string == null )
    return null ;
  return new MediaType(parse(string)) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public static MediaType create(String contentType, String charset) {
  ParsedMediaType mediaType = parse(contentType) ;
  if ( charset != null )
    mediaType.params.put(strCharset, charset) ;
  return new MediaType(mediaType) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public static MediaType create(String string) {
  if ( string == null )
    return null ;
  return new MediaType(parse(string)) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public MediaRange(String string)
{  
  super(MediaType.parse(string)) ;  
  set_q() ;
}

origin: apache/jena

public static MediaType createFromContentType(String string) {
  return new MediaType(parse(string)) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public static MediaType createFromContentType(String string) {
  return new MediaType(parse(string)) ;
}
origin: apache/jena

public static ContentType create(String ctString, String charset) {
  MediaType.ParsedMediaType x = MediaType.parse(ctString) ;
  x.params.put(charsetParamName, charset) ;
  return new ContentType(new MediaType(x)) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public static ContentType create(String ctString, String charset)
{
  MediaType.ParsedMediaType x = MediaType.parse(ctString) ;
  x.params.put(charsetParamName, charset) ;
  return new ContentType(new MediaType(x)) ;
}

org.apache.jena.atlas.webMediaTypeparse

Popular methods of MediaType

  • getContentType
  • toHeaderString
    Format for use in HTTP header
  • create
  • equals
  • getCharset
  • <init>
  • getParameter
  • getSubType
  • getType
  • hashCode
  • setParameter
  • toString
    Format to show structure - intentionally different from header form so you can tell parsing happened
  • setParameter,
  • toString,
  • createFromContentType

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now