| java.lang.Object com.ibm.icu.text.TransliteratorRegistry
TransliteratorRegistry | class TransliteratorRegistry (Code) | | |
Inner Class :static class Spec | |
Inner Class :static class ResourceEntry | |
Inner Class :static class LocaleEntry | |
Inner Class :static class AliasEntry | |
Inner Class :static class CompoundRBTEntry | |
Method Summary | |
public Transliterator | get(String ID, StringBuffer aliasReturn) Given a simple ID (forward direction, no inline filter, not
compound) attempt to instantiate it from the registry. | public Enumeration | getAvailableIDs() Returns an enumeration over the programmatic names of visible
registered transliterators. | public Enumeration | getAvailableSources() Returns an enumeration over all visible source names. | public Enumeration | getAvailableTargets(String source) Returns an enumeration over visible target names for the given
source. | public Enumeration | getAvailableVariants(String source, String target) Returns an enumeration over visible variant names for the given
source and target. | public void | put(String ID, Class transliteratorSubclass, boolean visible) Register a class. | public void | put(String ID, Transliterator.Factory factory, boolean visible) Register an ID and a factory function pointer. | public void | put(String ID, String resourceName, String encoding, int dir, boolean visible) Register an ID and a resource name. | public void | put(String ID, String alias, boolean visible) Register an ID and an alias ID. | public void | put(String ID, Transliterator trans, boolean visible) Register an ID and a Transliterator object. | public void | remove(String ID) Unregister an ID. |
TransliteratorRegistry | public TransliteratorRegistry()(Code) | | |
get | public Transliterator get(String ID, StringBuffer aliasReturn)(Code) | | Given a simple ID (forward direction, no inline filter, not
compound) attempt to instantiate it from the registry. Return
0 on failure.
Return a non-empty aliasReturn value if the ID points to an alias.
We cannot instantiate it ourselves because the alias may contain
filters or compounds, which we do not understand. Caller should
make aliasReturn empty before calling.
|
getAvailableIDs | public Enumeration getAvailableIDs()(Code) | | Returns an enumeration over the programmatic names of visible
registered transliterators.
An Enumeration over String objects |
getAvailableSources | public Enumeration getAvailableSources()(Code) | | Returns an enumeration over all visible source names.
An Enumeration over String objects |
getAvailableTargets | public Enumeration getAvailableTargets(String source)(Code) | | Returns an enumeration over visible target names for the given
source.
An Enumeration over String objects |
getAvailableVariants | public Enumeration getAvailableVariants(String source, String target)(Code) | | Returns an enumeration over visible variant names for the given
source and target.
An Enumeration over String objects |
put | public void put(String ID, Class transliteratorSubclass, boolean visible)(Code) | | Register a class. This adds an entry to the
dynamic store, or replaces an existing entry. Any entry in the
underlying static locale resource store is masked.
|
put | public void put(String ID, Transliterator.Factory factory, boolean visible)(Code) | | Register an ID and a factory function pointer. This adds an
entry to the dynamic store, or replaces an existing entry. Any
entry in the underlying static locale resource store is masked.
|
put | public void put(String ID, String resourceName, String encoding, int dir, boolean visible)(Code) | | Register an ID and a resource name. This adds an entry to the
dynamic store, or replaces an existing entry. Any entry in the
underlying static locale resource store is masked.
|
put | public void put(String ID, String alias, boolean visible)(Code) | | Register an ID and an alias ID. This adds an entry to the
dynamic store, or replaces an existing entry. Any entry in the
underlying static locale resource store is masked.
|
put | public void put(String ID, Transliterator trans, boolean visible)(Code) | | Register an ID and a Transliterator object. This adds an entry
to the dynamic store, or replaces an existing entry. Any entry
in the underlying static locale resource store is masked.
|
remove | public void remove(String ID)(Code) | | Unregister an ID. This removes an entry from the dynamic store
if there is one. The static locale resource store is
unaffected.
|
|
|