org.extex.font.format.xtf.tables
Class TtfTableNAME.NameRecord

java.lang.Object
  extended by org.extex.font.format.xtf.tables.TtfTableNAME.NameRecord
All Implemented Interfaces:
XMLWriterConvertible
Enclosing class:
TtfTableNAME

public class TtfTableNAME.NameRecord
extends java.lang.Object
implements XMLWriterConvertible

NameRecord.

< /tr>
Type Description
USHORT Platform ID.
USHORTPlatform-specific encoding ID.
USHORT Language ID.
USHORT Name ID.
USHORT String length (in bytes).
USHORT String offset from start of storage area (in bytes).

Platform ID

ID Platform Specific encoding
0 Unicode none
1 Macintosh Script manager code
2 ISO ISO encoding
3 Microsoft Microsoft encoding

Microsoft platform-specific encoding ID’s (platform ID = 3)

Code Description
0 Undefined character set or indexing scheme
1 UGL character set with Unicode indexing scheme (see chapter, “Character Sets.”)


Method Summary
 short getEncodingId()
          Returns the encoding id.
 short getLanguageId()
          Returns the language id.
 short getNameId()
          Returns the name id.
 short getPlatformId()
          Returns the platform id.
 java.lang.String getRecord()
          Returns the record.
 java.lang.String getRecordString()
          Returns the record string.
 short getStringLength()
          Returns the stringLength.
 short getStringOffset()
          Returns the stringOffset.
 void loadString(RandomAccessR rar, int stringStorageOffset)
          Load the string.
 java.lang.String toString()
          Returns the info for this class.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEncodingId

public short getEncodingId()
Returns the encoding id.

Returns:
Returns the encoding id

getLanguageId

public short getLanguageId()
Returns the language id.

Returns:
Returns the language id

getNameId

public short getNameId()
Returns the name id.

Returns:
Returns the name id

getPlatformId

public short getPlatformId()
Returns the platform id.

Returns:
Returns the platform id

getRecord

public java.lang.String getRecord()
Returns the record.

Returns:
Returns the record.

getRecordString

public java.lang.String getRecordString()
Returns the record string.

Returns:
Returns the record string

getStringLength

public short getStringLength()
Returns the stringLength.

Returns:
Returns the stringLength.

getStringOffset

public short getStringOffset()
Returns the stringOffset.

Returns:
Returns the stringOffset.

loadString

public void loadString(RandomAccessR rar,
                       int stringStorageOffset)
                throws java.io.IOException
Load the string.

Parameters:
rar - input
stringStorageOffset - offset
Throws:
java.io.IOException - if an IO-error occurs

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

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)