Here you can find the source of getParamString(StringTokenizer s)
Gets an String from param file, skiping "="
Parameter | Description |
---|---|
s | Token |
public static String getParamString(StringTokenizer s)
//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; } }