org.jasen.core.parsers
Class StandardHeuristicAnalyzer

java.lang.Object
  extended byorg.jasen.core.parsers.StandardHeuristicAnalyzer
All Implemented Interfaces:
HeuristicAnalyzer

public class StandardHeuristicAnalyzer
extends Object
implements HeuristicAnalyzer

Scans a message looking for regular expression matches.

Author:
Jason Polites

Constructor Summary
StandardHeuristicAnalyzer()
           
 
Method Summary
 int analyze(javax.mail.internet.MimeMessage mm, JasenMessage message, HeuristicDefinitionSet definitions, int threshold)
          Analyzes the message looking for heuristic matches against patterns defined in the HeuristicDefinitionSet set provided
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardHeuristicAnalyzer

public StandardHeuristicAnalyzer()
Method Detail

analyze

public int analyze(javax.mail.internet.MimeMessage mm,
                   JasenMessage message,
                   HeuristicDefinitionSet definitions,
                   int threshold)
            throws JasenException
Description copied from interface: HeuristicAnalyzer
Analyzes the message looking for heuristic matches against patterns defined in the HeuristicDefinitionSet set provided

Specified by:
analyze in interface HeuristicAnalyzer
Parameters:
mm - The raw MimeMessage
message - The message to analyze
definitions - The set of definitions to use
threshold - The number of matches above which analysis ceases. Use zero (0) for unlimited matches
Returns:
The number of matches found
Throws:
JasenException