public class CharsetUtils extends Object
Constructor and Description |
---|
CharsetUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
clean(String charsetName)
Handle various common charset name errors, and return something
that will be considered valid (and is normalized)
|
static Charset |
forName(String name)
Returns Charset impl, if one exists.
|
static boolean |
isSupported(String charsetName)
Safely return whether
|
public static boolean isSupported(String charsetName)
charsetName
- Name of charset (can be null)public static String clean(String charsetName)
charsetName
- name of charset to processCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.