public final class ParsedContentType extends Object implements Serializable
| Constructor and Description |
|---|
ParsedContentType(String mimeType)
Creates a new parsed content type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the content type (without charset declaration) of the MIME type.
|
String |
getEncoding()
Returns the character encoding of the MIME type.
|
public ParsedContentType(String mimeType)
mimeType - the full MIME type; typically the value of the "Content-Type" header of some
MIME-compliant message. Can be null.public String getContentType()
public String getEncoding()
Copyright © 2025 HtmlUnit. All rights reserved.