org.jasen.core.parsers
Class StandardHeuristicAnalyzer
java.lang.Object
org.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
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 |
StandardHeuristicAnalyzer
public StandardHeuristicAnalyzer()
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 MimeMessagemessage
- The message to analyzedefinitions
- The set of definitions to usethreshold
- The number of matches above which analysis ceases. Use zero (0) for unlimited matches
- Returns:
- The number of matches found
- Throws:
JasenException