Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.10

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

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