Java String Tokenize getParamString(StringTokenizer s)

Here you can find the source of getParamString(StringTokenizer s)

Description

Gets an String from param file, skiping "="

License

Open Source License

Parameter

Parameter Description
s Token

Return

String value of the token

Declaration

public static String getParamString(StringTokenizer s) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    /**//from   ww  w  .  j  av a  2 s . c om
     * <p>
     * Gets an String from param file, skiping "="
     * </p>
     * @param s     Token
     * @return      String value of the token
     */
    public static String getParamString(StringTokenizer s) {
        String contenido = "";
        String val = s.nextToken(); // skip "="
        do {
            if (!s.hasMoreTokens())
                break;
            contenido += s.nextToken() + " ";
        } while (true);
        contenido = contenido.trim();
        return contenido;
    }
}

Related

  1. getAllTokens(final String string)
  2. getCommandTokens(String commandString)
  3. getFileName(StringTokenizer s)
  4. getNameTokens(final String names)
  5. getParamFloat(StringTokenizer s)
  6. getSQLTokens(String query)
  7. getStringTokens(String str)
  8. getTokenArray(String sequence, String[] chain, boolean paired, boolean includeDelim)
  9. getTokens(final String s)