Get available target ids for a Transliterator source id

Problem:

You have a source id but you want to retrieve all available target ids for the source id.

Solution:

A Transliterator is retrieved using an id that is a combination of a source and target id.

 

To retrieve all possible target IDs for the source "Latin":
//Get an Enumeration of available target ids for the source "Latin"
Enumeration<String> ids = Transliterator.getAvailableTargets("Latin");
//Loop through available ids and output them to the console
while(ids.hasMoreElements()){
    String id = ids.nextElement();
    System.out.println(id);
}

 


The output:

Gujarati
Jamo
Han
Katakana
Hiragana
Armenian
Cyrillic
NumericPinyin
Gurmukhi
Bengali
Hangul
Arabic
Greek
Devanagari
Hebrew
Thai
Oriya
Tamil
Syriac
Malayalam
Kannada
Thaana
Telugu
Georgian