|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.utils.CharsetUtils
public class CharsetUtils
Constructor Summary | |
---|---|
CharsetUtils()
|
Method Summary | |
---|---|
static java.lang.String |
clean(java.lang.String charsetName)
Handle various common charset name errors, and return something that will be considered valid (and is normalized) |
static java.nio.charset.Charset |
forName(java.lang.String name)
Returns Charset impl, if one exists. |
static boolean |
isSupported(java.lang.String charsetName)
Safely return whether |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharsetUtils()
Method Detail |
---|
public static boolean isSupported(java.lang.String charsetName)
charsetName
- Name of charset (can be null)
public static java.lang.String clean(java.lang.String charsetName)
charsetName
- name of charset to process
public static java.nio.charset.Charset forName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |