|
||||||||||
| 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 | |
|---|---|
java.lang.String |
tokenize(java.io.File file,
java.util.Map m)
Tokenize a file. |
java.lang.String |
tokenizeString(java.lang.String input,
java.util.Map 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 java.lang.String tokenizeString(java.lang.String input,
java.util.Map m)
input - the input stringm - the map of tokens (without percents)
public java.lang.String tokenize(java.io.File file,
java.util.Map m)
file - file to tokenizep - 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 | |||||||||