org.apache.commons.net.util
Class Charsets
java.lang.Object
org.apache.commons.net.util.Charsets
public class Charsets
- extends Object
Helps dealing with Charsets.
- Since:
- 3.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Charsets
public Charsets()
toCharset
public static Charset toCharset(String charsetName)
- Returns a charset object for the given charset name.
- Parameters:
charsetName
- The name of the requested charset; may be a canonical name, an alias, or null. If null, return the
default charset.
- Returns:
- A charset object for the named charset
toCharset
public static Charset toCharset(String charsetName,
String defaultCharsetName)
- Returns a charset object for the given charset name.
- Parameters:
charsetName
- The name of the requested charset; may be a canonical name, an alias, or null.
If null, return the default charset.defaultCharsetName
- the charset name to use if the requested charset is null
- Returns:
- A charset object for the named charset
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.