org.extex.font.format.texencoding
Class EncReader

java.lang.Object
  extended by org.extex.font.format.texencoding.EncReader
All Implemented Interfaces:
java.io.Serializable

public class EncReader
extends java.lang.Object
implements java.io.Serializable

Reader for encoding-files.

Version:
$Revision: 5955 $
Author:
Michael Niedermair
See Also:
font encoding file, Serialized Form

Constructor Summary
EncReader(java.io.InputStream in)
          Create a new object.
 
Method Summary
 java.lang.String getEncname()
          Returns the encname.
 int getPosition(java.lang.String name)
          Returns the position of the glyph in the table.
 java.lang.String[] getTable()
          Returns the encoding table.
 java.lang.String[] getTableWithoutSlash()
          Returns the encoding table without a slash in the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncReader

public EncReader(java.io.InputStream in)
          throws FontException
Create a new object.

Parameters:
in - input stream for reading
Throws:
FontException - if an IO-error occurred
Method Detail

getEncname

public java.lang.String getEncname()
Returns the encname.

Returns:
Returns the encname.

getPosition

public int getPosition(java.lang.String name)
Returns the position of the glyph in the table.

Parameters:
name - The glyph name.
Returns:
Returns the position of the glyph in the table or -1 if not found.

getTable

public java.lang.String[] getTable()
Returns the encoding table.

Returns:
Returns the encoding table.

getTableWithoutSlash

public java.lang.String[] getTableWithoutSlash()
Returns the encoding table without a slash in the name.

Returns:
Returns the encoding table.