GeoSoft API

no.geosoft.cc.util
Class SmartTokenizer

Object
  |
  +--SmartTokenizer

public class SmartTokenizer
extends Object

A StringTokenizer class that handle empty tokens.

Author:
GeoSoft

Constructor Summary
SmartTokenizer(String string, String delimiter)
           
 
Method Summary
 int countTokens()
           
 boolean hasMoreElements()
           
 boolean hasMoreTokens()
           
static void main(String[] args)
          Testing this class.
 Object nextElement()
           
 String nextToken()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartTokenizer

public SmartTokenizer(String string,
                      String delimiter)
Method Detail

countTokens

public int countTokens()

hasMoreTokens

public boolean hasMoreTokens()

hasMoreElements

public boolean hasMoreElements()

nextElement

public Object nextElement()

nextToken

public String nextToken()

main

public static void main(String[] args)
Testing this class.

Parameters:
args - Not used.

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no