Search in sources :

Example 6 with TokenValue

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);
}
Also used : StringTokenizer(java.util.StringTokenizer) TokenValue(com.sun.enterprise.admin.util.TokenValue)

Aggregations

TokenValue (com.sun.enterprise.admin.util.TokenValue)6 TokenValueSet (com.sun.enterprise.admin.util.TokenValueSet)5 PEFileLayout (com.sun.enterprise.admin.servermgmt.pe.PEFileLayout)2 LineTokenReplacer (com.sun.enterprise.admin.util.LineTokenReplacer)1 ZipFile (com.sun.enterprise.util.zip.ZipFile)1 BufferedReader (java.io.BufferedReader)1 FileReader (java.io.FileReader)1 StringTokenizer (java.util.StringTokenizer)1