org.extex.font.unicode
Class GlyphName

java.lang.Object
  extended by org.extex.font.unicode.GlyphName

public final class GlyphName
extends java.lang.Object

This class manage the correlation between the glyph name and the Unicode value.

Version:
$Revision: 5592 $
Author:
Michael Niedermair

Method Summary
 java.lang.String getGlyphname(UnicodeChar uc)
          Returns the name of the glyph, or null, if not found.
static GlyphName getInstance()
          Return the instance of GlyphName.
 UnicodeChar getUnicode(java.lang.String name)
          Returns the UnicodeChar for the glyph name or null, if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GlyphName getInstance()
                             throws java.io.IOException
Return the instance of GlyphName.

Returns:
Return the instance of GlyphName.
Throws:
java.io.IOException - if an IO-error occurred.

getGlyphname

public java.lang.String getGlyphname(UnicodeChar uc)
Returns the name of the glyph, or null, if not found.

Parameters:
uc - the Unicode char.
Returns:
the name of the glyph, or null, if not found.

getUnicode

public UnicodeChar getUnicode(java.lang.String name)
Returns the UnicodeChar for the glyph name or null, if not found.

Parameters:
name - The glyph name.
Returns:
Returns the UnicodeChar for the glyph name or null, if not found.