Class Charset
- java.lang.Object
-
- org.infinispan.rest.operations.mediatypes.Charset
-
public class Charset extends Object
Represents Charset.Charsets are technically an optional part of a
MediaType
.- Author:
- Sebastian Ćaskawiec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Charset
fromMediaType(String mediaType)
CreatesCharset
based onMediaType
as string.Charset
getJavaCharset()
Creates JavaCharset
from this object.String
toString()
-
-
-
Method Detail
-
fromMediaType
public static Charset fromMediaType(String mediaType)
CreatesCharset
based onMediaType
as string.- Parameters:
mediaType
-MediaType
value.- Returns:
- Returns
Charset
value ornull
if charset is not supported.
-
getJavaCharset
public Charset getJavaCharset()
Creates JavaCharset
from this object.- Returns:
- Java
Charset
from this object.
-
-