org.extex.font.format.tfm
Class U2tFactory

java.lang.Object
  extended by org.extex.font.format.tfm.U2tFactory

public class U2tFactory
extends java.lang.Object

Factory for the Unicode to tex font mapping.

Version:
$Revision: 5592 $
Author:
Michael Niedermair

Method Summary
static U2tFactory getInstance()
          Returns the singleton instance.
 java.util.Map<java.lang.Integer,UnicodeChar> loadT2u(java.lang.String name, ResourceFinder finder)
          Returns the t2u map, or null, if the property file is not found.
 java.util.Map<UnicodeChar,java.lang.Integer> loadU2t(java.lang.String name, ResourceFinder finder)
          Returns the u2t map, or null, if the property file is 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 U2tFactory getInstance()
Returns the singleton instance.

Returns:
the singleton instance.

loadU2t

public java.util.Map<UnicodeChar,java.lang.Integer> loadU2t(java.lang.String name,
                                                            ResourceFinder finder)
                                                     throws java.io.IOException,
                                                            ConfigurationException,
                                                            java.lang.NumberFormatException
Returns the u2t map, or null, if the property file is not found.

Parameters:
name - the name of the property.
finder - the resource finder.
Returns:
the u2t map, or null, if the property file is not found.
Throws:
java.io.IOException - if a io error occurred.
ConfigurationException - from the configuration system.
java.lang.NumberFormatException - if a parse error occurred.

loadT2u

public java.util.Map<java.lang.Integer,UnicodeChar> loadT2u(java.lang.String name,
                                                            ResourceFinder finder)
                                                     throws java.io.IOException,
                                                            ConfigurationException,
                                                            java.lang.NumberFormatException
Returns the t2u map, or null, if the property file is not found.

Parameters:
name - the name of the property.
finder - the resource finder.
Returns:
the t2u map, or null, if the property file is not found.
Throws:
java.io.IOException - if a io error occurred.
ConfigurationException - from the configuration system.
java.lang.NumberFormatException - if a parse error occurred.