GXPARSE hosted by SourceForge.net Logo

ca.gorman.util.scan
Class RegexFactory

java.lang.Object
  extended by ca.gorman.util.scan.RegexFactory

public abstract class RegexFactory
extends Object

Produces rules for recognizing regular expressions.

This class is thread-safe, all methods are reentrant.


Method Summary
static RegexFactory newInstance()
           
 ScanRule newRegexScanRule(String regex)
           Create a ScanRule instance from a regular expression.
 ScanRule newRegexScanRule(String regex, ScanAction scanAction)
           Create a ScanRule instance from a regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static RegexFactory newInstance()

newRegexScanRule

public ScanRule newRegexScanRule(String regex)

Create a ScanRule instance from a regular expression.

Parameters:
regex - The regular expression
Throws:
NullPointerException - if patern is null

newRegexScanRule

public ScanRule newRegexScanRule(String regex,
                                 ScanAction scanAction)

Create a ScanRule instance from a regular expression.

Parameters:
regex - The regular expression
Throws:
NullPointerException - if patern is null

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License