org.extex.font.format.xtf.tables.gps
Class Class2Record

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.Class2Record
All Implemented Interfaces:
XMLWriterConvertible

public class Class2Record
extends java.lang.Object
implements XMLWriterConvertible

Class for a Class2Record.

Version:
$Revision: 7274 $
Author:
Michael Niedermair

Constructor Summary
Class2Record(RandomAccessR rar, int posOffset, XtfGlyphName xtfGlyph, int idx, int valueFormat1, int valueFormat2)
          Creates a new object.
 
Method Summary
 PairValue getPairValue()
          Getter for pairValue.
 void init(RandomAccessR rar, int posOffset)
          Initialize the ValueRecord.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Class2Record

public Class2Record(RandomAccessR rar,
                    int posOffset,
                    XtfGlyphName xtfGlyph,
                    int idx,
                    int valueFormat1,
                    int valueFormat2)
             throws java.io.IOException
Creates a new object.

Parameters:
rar - The input.
posOffset - The offset of the pos table (GSUB, GPOS).
xtfGlyph - The glyph name.
idx - The index.
valueFormat2 - The format for the second glyph.
valueFormat1 - The format for the first glyph.
Throws:
java.io.IOException - if a io-error occurred.
Method Detail

getPairValue

public PairValue getPairValue()
Getter for pairValue.

Returns:
the pairValue

init

public void init(RandomAccessR rar,
                 int posOffset)
          throws java.io.IOException
Initialize the ValueRecord.

Parameters:
rar - The input.
posOffset - The offset of the pos table.
Throws:
java.io.IOException - if a IO-error occurred.

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( org.extex.util.xml.XMLStreamWriter)