import java.util.Vector; // StringSplitter // A stringsplitter object splits a string into a number of substrings, // each separated by one separator character. Separator characters can be // included in the string by escaping them with a \ public class StringSplitter { Vector parts = new Vector(); int pos = 0; StringSplitter(String str, char sep) { this(str, sep, true); } StringSplitter(String str, char sep, boolean escape) { StringBuffer current; parts.addElement(current = new StringBuffer()); for(int i=0; i