public static String[] getAllDetectableCharsets() {
        String[] allCharsetNames = new String[ALL_CS_RECOGNIZERS.size()];
        for (int i = 0; i < allCharsetNames.length; i++) {
            allCharsetNames[i] = ALL_CS_RECOGNIZERS.get(i).recognizer.getName();
        }
        return allCharsetNames;
    }
Get the names of all charsets supported by <code>CharsetDetector</code> class.
<p>
<b>Note:</b> Multiple different charset encodings in a same family may use
a single shared name in this implementation. For example, this method returns
an array including "ISO-8859-1" (ISO Latin 1), but not including "windows-1252"
(Windows Latin 1). However, actual detection result could be "windows-1252"
when the input data matches Latin 1 code points with any points only available
in "windows-1252".

@return an array of the names of all charsets supported by
<code>CharsetDetector</code> class.
@stable ICU 3.4
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/txt/CharsetDetector.java