| Modifier and Type | Method and Description |
|---|---|
static Charset |
determineCharset(Parameters headers)
Returns the
Charset specified in the content-type header, using StandardCharsets.UTF_8
as the default. |
static Charset |
determineCharset(Parameters headers,
Charset defaultCharset)
Returns the
Charset specified in the content type header. |
public static Charset determineCharset(Parameters headers)
Charset specified in the content-type header, using StandardCharsets.UTF_8
as the default.headers - The headers.public static Charset determineCharset(Parameters headers, Charset defaultCharset)
Charset specified in the content type header. If not provided or an error occurs on lookup,
the given default is returned.headers - The headers.defaultCharset - The default.Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.