use of com.sun.enterprise.admin.util.TokenValue in project Payara by payara.
the class TokenReplacementTester method getTokenValue.
private TokenValue getTokenValue(String line) {
final String delim = "=";
final StringTokenizer parser = new StringTokenizer(line, delim);
final String[] output = new String[2];
int i = 0;
while (parser.hasMoreTokens()) {
output[i++] = parser.nextToken();
}
final String DELIM = "%%%";
TokenValue tv = new TokenValue(output[0], output[1], DELIM);
return (tv);
}
Aggregations