org.extex.font.format.xtf.tables
Class TtfTableCMAP.Format

java.lang.Object
  extended by org.extex.font.format.xtf.tables.TtfTableCMAP.Format
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
TtfTableCMAP.Format0, TtfTableCMAP.Format10, TtfTableCMAP.Format12, TtfTableCMAP.Format2, TtfTableCMAP.Format4, TtfTableCMAP.Format6, TtfTableCMAP.Format8
Enclosing class:
TtfTableCMAP

public abstract class TtfTableCMAP.Format
extends java.lang.Object
implements XMLWriterConvertible

Abstract class for all formats.


Method Summary
 void addAttributes(XMLStreamWriter writer)
          Add the attrinbutes.
 int getFormat()
          Returns the format.
 int getLength()
          Returns the length.
 int getVersion()
          Returns the version.
abstract  int mapCharCode(int charCode)
          map char code.
 java.lang.String toString()
          Returns the info for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Method Detail

addAttributes

public void addAttributes(XMLStreamWriter writer)
                   throws java.io.IOException
Add the attrinbutes.

Parameters:
writer - The xml writer.
Throws:
java.io.IOException - if an IO-error occurs.

getFormat

public int getFormat()
Returns the format.

Returns:
Returns the format

getLength

public int getLength()
Returns the length.

Returns:
Returns the length

getVersion

public int getVersion()
Returns the version.

Returns:
returns the version

mapCharCode

public abstract int mapCharCode(int charCode)
map char code.

Parameters:
charCode - the charcode
Returns:
Returns the map char code

toString

public java.lang.String toString()
Returns the info for this class.

Overrides:
toString in class java.lang.Object
Returns:
Returns the info for this class