de.apage4u.database.utils
Class TokenizerWithBlanks

java.lang.Object
  extended byde.apage4u.database.utils.TokenizerWithBlanks

public class TokenizerWithBlanks
extends java.lang.Object

This simple class has one method that tokenizes a string, but allows tokens to be blanks. This is in contrast to the java.util.StringTokenizer class that assumes that multiple delimiters are a single delimiter. This class is designed to tokenize the output of spreadsheets, where not all cells have entries


Constructor Summary
TokenizerWithBlanks()
           
 
Method Summary
static java.lang.String[] tokenize(java.lang.String _input, char delimiter)
          Tokenize the string `s' with the specified delimiter, returning the tokens as an array of strings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenizerWithBlanks

public TokenizerWithBlanks()
Method Detail

tokenize

public static java.lang.String[] tokenize(java.lang.String _input,
                                          char delimiter)
Tokenize the string `s' with the specified delimiter, returning the tokens as an array of strings



Copyright © 2004 www.apage4u.de. All Rights Reserved.