Here you can find the source of getTokens(String vbt)
public static Vector getTokens(String vbt)
//package com.java2s; /*L// w w w . j a v a 2 s. c o m * Copyright Northrop Grumman Information Technology. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/nci-mapping-tool/LICENSE.txt for details. */ import java.util.*; public class Main { private static Vector filler_vec = null; public static Vector getTokens(String vbt) { String t = removeFillers(vbt); Vector v = new Vector(); StringTokenizer st = new StringTokenizer(t, " "); int knt = 0; String retstr = ""; while (st.hasMoreTokens()) { String val = st.nextToken(); val = val.toLowerCase(); v.add(val); } return v; } public static String removeFillers(String str) { String delim = getDelimiters(); return removeFillers(str, delim); } public static String removeFillers(String str, String delim) { Vector fillers = getFillers(); StringTokenizer st = new StringTokenizer(str, delim); int knt = 0; //String retstr = ""; StringBuffer buf = new StringBuffer(); while (st.hasMoreTokens()) { String val = st.nextToken(); if (!fillers.contains(val)) { //retstr = retstr + " " + val; buf.append(" " + val); } } String retstr = buf.toString(); retstr = retstr.trim(); return retstr; } public static String getDelimiters() { return "(-)"; } public static Vector getFillers() { return filler_vec; } }