(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: xml :: sax ::

unpublished interface XFastTokenHandler
Usage Restrictions
not published
Description
interface to translate xml strings to integer tokens.

An instance of this interface can be registered at a XFastParser. It should be able to translate all xml names (element local names, attribute local names and constant attribute values) to integer tokens. A token value must be greater or equal to zero and less than FastToken::NAMESPACE. If a string identifier is not known to this instance, FastToken::DONTKNOW is returned.


Methods' Summary
getToken returns a integer token for the given string identifier.  
getIdentifier returns a string identifier for the given integer token.  
getTokenFromUTF8 returns a integer token for the given string  
getUTF8Identifier returns a identifier for the given integer token as a byte sequence encoded in UTF8.  
Methods' Details
getToken
long
getToken( [in] string  Identifier );

Description
returns a integer token for the given string identifier.
Returns
a unique integer token for the given String or FastToken::DONTKNOW if the identifier is not known to this instance.
getIdentifier
string
getIdentifier( [in] long  Token );

Description
returns a string identifier for the given integer token.
getTokenFromUTF8
long
getTokenFromUTF8( [in] sequence< byte >  Identifier );

Description
returns a integer token for the given string
Parameter Identifier
the string given as a byte sequence encoded in UTF8
Returns
a unique integer token for the given String or FastToken::DONTKNOW if the identifier is not known to this instance.
getUTF8Identifier
sequence< byte >
getUTF8Identifier( [in] long  Token );

Description
returns a identifier for the given integer token as a byte sequence encoded in UTF8.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.