org.apache.logging.log4j.core.helpers
Class Charsets

java.lang.Object
  extended by org.apache.logging.log4j.core.helpers.Charsets

public final class Charsets
extends Object

Charset utilities.


Method Summary
static Charset getSupportedCharset(String charsetName)
          Gets a Charset, starting with the preferred charsetName if supported, if not, use UTF-8, if not supported, use the platform default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSupportedCharset

public static Charset getSupportedCharset(String charsetName)
Gets a Charset, starting with the preferred charsetName if supported, if not, use UTF-8, if not supported, use the platform default.

Parameters:
charsetName - the preferred charset name
Returns:
a Charset, not null.


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.