public final class MessageUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
MessageUtils()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.nio.charset.Charset |
getCharset(javax.ws.rs.core.MediaType media)
Get the character set from a media type.
|
public static java.nio.charset.Charset getCharset(javax.ws.rs.core.MediaType media)
The character set is obtained from the media type parameter "charset".
If the parameter is not present the UTF8
charset is utilized.
media
- the media type.