String[] tokens = null;
ParserData data = null;
int counter = 1;
HTMLParser htmlParser = null;
System.out.println ("Scanning " + files.length + " files");
for (int i = 0; i < files.length; i++)
{
try
{
htmlParser = (HTMLParser)htmlParserClass.newInstance();
mm = getMimeMessage(files[i]);
message = mimeParser.parse(mm);
data = htmlParser.parse(mm, message, tokenizer);
if(learn(data, type)) {
count++;
}