Package jsky.util

Examples of jsky.util.StringTokenizerUtil


     *
     * @param s A line containing tab separated column headings.
     * @return A vector of column heading Strings.
     */
    protected Vector _parseHeading(String s) {
        StringTokenizerUtil st = new StringTokenizerUtil(s, _columnSeparator);
        Vector<Object> v = new Vector<Object>(st.countTokens(), 1);
        while (st.hasMoreTokens()) {
            v.add(st.nextToken().trim());
        }
        return v;
    }
View Full Code Here


     *
     * @param lineStr A string containing a line from the table.
     * @return A Vector containing the items in the row.
     */
    protected Vector<Object> _parseRow(String lineStr) {
        StringTokenizerUtil st = new StringTokenizerUtil(lineStr, _columnSeparator);
        int numCols = columnIdentifiers.size();
        int i = 0;
        Vector<Object> row = new Vector<Object>(numCols, 1);

        while (st.hasMoreTokens()) {
            if (i++ >= numCols) {
                break;
            }
            String s = st.nextToken().trim();
            if (s.length() != 0) {
                Object o = _parseItem(s);
                _checkColumnClass(i - 1, o);
                row.add(o);
            } else {
View Full Code Here

TOP

Related Classes of jsky.util.StringTokenizerUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.