Package org.apache.tika.utils
Class CharsetUtils
java.lang.Object
org.apache.tika.utils.CharsetUtils
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.Handle various common charset name errors, and return something that will be considered valid (and is normalized)static CharsetDeprecated.Returns Charset impl, if one exists.static booleanisSupported(String charsetName) Deprecated.Safely return whetheris supported, without throwing exceptions
-
Constructor Details
-
CharsetUtils
public CharsetUtils()Deprecated.
-
-
Method Details
-
isSupported
Deprecated.Safely return whetheris supported, without throwing exceptions - Parameters:
charsetName- Name of charset (can be null)- Returns:
- true if the character set is supported
-
clean
Deprecated.Handle various common charset name errors, and return something that will be considered valid (and is normalized)- Parameters:
charsetName- name of charset to process- Returns:
- potentially remapped/cleaned up version of charset name
-
forName
Deprecated.Returns Charset impl, if one exists. This method optionally uses ICU4J's CharsetICU.forNameICU, if it is found on the classpath, else only uses JDK's builtin Charset.forName.
-