public class MiniMime extends Object
1.0).
Note: the
grammar permits whitespace fairly generally, but the parser in this class
does not cope with this correctly, but largely assumes that such whitespace
is omitted.| Modifier and Type | Field and Description |
|---|---|
float |
q
The extracted quality score for the MIME Type (
q=...). |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentEncoding()
Return the value of the
charset. |
String |
getMimeType()
The MIME type without any MIME parameters.
|
String |
getParam(String name,
String def)
Return the first value for the named MIME type parameter.
|
public MiniMime(String s)
s - The value to be parsed.NullPointerException - if the argument is nullpublic String getMimeType()
public String getParam(String name, String def)
name - The parameter name (case sensitive).def - The default value (optional).public String getContentEncoding()
charset.
Note: Per Section 3.7.1 Canonicalization and Text Defaults of the HTTP 1.1 specification:
charset parameter and
null if that parameter was not given.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.