This may not answer your question exactly, but, quoting the StringTokenizer Docs ,
StringTokenizer is an inherited class that is preserved for compatibility, although its use is not recommended in new code. It is recommended that anyone looking for this functionality use the split String method or instead of the java.util.regex package.
, , . , , StringTokenizer, , , split? StringTokenizer - returnDelims true ( ), split.
StringTokenizer, . StringTokenizer Serializable, Serializable, void. , - , , , , XML/JSON. . , .