:: com :: sun :: star :: xml :: sax ::
|
unpublished |
interface XFastTokenHandler |
|
|
|
- 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
|
|
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
Copyright © 2010 Sun Microsystems, Inc.