Servertec | StringTokenizer( )

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Config Context Cookie Date Enumeration File FileDescriptor Hashtable Internet IO JDBC Number Object Properties Random Request RequestDispatcher Response Session SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer countTokens( ) hasMoreElements( ) hasMoreTokens( ) nextElement( ) nextToken( ) StringTokenizer( ) System Vector Wrappers Servlet Server Pages Preprocessor Executable Samples Legal Contact Us |
Returns a new string tokenizer object for the specified string with the given delimiters separating tokens. #### Syntax StringTokenizer( string ) StringTokenizer( string , delimiters ) StringTokenizer( string , delimiters , boolean ) #### Parameters
string | the string to use.
delimiters | the characters separating the tokens.
boolean | whether to return the delimiters as tokens.
#### Returns
stringtokenizer | the new stringtokenizer object.
#### Example
    st = StringTokenizer( sValue , "," )
    if st.hasMoreTokens( ) then
        token = st.nextToken( )
        println( "next token: " + token )
    end
top of page Copyright © 1998-2005 Servertec. All rights reserved. Privacy Statement. Last Modified: Sun Sep 04 14:56:08 EDT 2005