|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.SpyToker
public class SpyToker
A simple token in-plugger.
Input files are in any textual format, with tokens in the format of %TOKEN% where TOKEN is a valid token that can be found in the hash passed in to the tokenizer.
| Constructor Summary | |
|---|---|
SpyToker()
Construct a SpyToker. |
|
| Method Summary | |
|---|---|
String |
tokenize(File file,
Map<String,String> m)
Tokenize a file. |
String |
tokenizeString(String input,
Map<String,String> m)
Tokenize a String, return the tokenized results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpyToker()
| Method Detail |
|---|
public String tokenizeString(String input,
Map<String,String> m)
input - the input stringm - the map of tokens (without percents)
public String tokenize(File file,
Map<String,String> m)
file - file to tokenizem - Map whose entries will be looked up to fill in the
tokens in the text file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||