Class CharsetUtils
java.lang.Object
org.apache.tika.utils.CharsetUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringHandle various common charset name errors, and return something that will be considered valid (and is normalized)static CharsetReturns Charset impl, if one exists.static booleanisSupported(String charsetName) Safely return whetheris supported, without throwing exceptions
-
Constructor Details
-
CharsetUtils
public CharsetUtils()
-
-
Method Details
-
isSupported
Safely return whetheris supported, without throwing exceptions - Parameters:
charsetName- Name of charset (can be null)- Returns:
- true if the character set is supported
-
clean
-
forName
-