net.spy
Class SpyToker

java.lang.Object
  extended bynet.spy.SpyToker

public class SpyToker
extends Object

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()
           
 
Method Summary
 String tokenize(File file, Map m)
          Tokenize a file.
 String tokenize(String file, Map m)
          Deprecated. give it a File instead.
 String tokenizeString(String input, 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

SpyToker

public SpyToker()
Method Detail

tokenize

public String tokenize(String file,
                       Map m)
Deprecated. give it a File instead.


tokenizeString

public String tokenizeString(String input,
                             Map m)
Tokenize a String, return the tokenized results.

Parameters:
input - the input string
m - the map of tokens (without percents)
Returns:
the tokenized string

tokenize

public String tokenize(File file,
                       Map m)
Tokenize a file.

Parameters:
file - file to tokenize
Returns:
tokenized data from the file.