|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.helpers.Charsets
public final class Charsets
Charset utilities.
Field Summary | |
---|---|
static Charset |
UTF_8
UTF-8 Charset. |
Method Summary | |
---|---|
static Charset |
getSupportedCharset(String charsetName)
Returns a Charset, if possible the Charset for the specified charsetName , otherwise (if the specified
charsetName is null or not supported) this method returns the platform default Charset. |
static Charset |
getSupportedCharset(String charsetName,
Charset defaultCharset)
Returns a Charset, if possible the Charset for the specified charsetName , otherwise (if the specified
charsetName is null or not supported) this method returns the platform default Charset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Charset UTF_8
Method Detail |
---|
public static Charset getSupportedCharset(String charsetName)
charsetName
, otherwise (if the specified
charsetName
is null
or not supported) this method returns the platform default Charset.
charsetName
- name of the preferred charset or null
public static Charset getSupportedCharset(String charsetName, Charset defaultCharset)
charsetName
, otherwise (if the specified
charsetName
is null
or not supported) this method returns the platform default Charset.
charsetName
- name of the preferred charset or null
defaultCharset
- returned if charsetName
is null or is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.