de.danielnaber.languagetool.rules.patterns
Class PatternRuleLoader

Object
  extended by DefaultHandler
      extended by PatternRuleLoader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class PatternRuleLoader
extends DefaultHandler

Loads PatternRules from an XML file.

Author:
Daniel Naber

Constructor Summary
PatternRuleLoader()
           
 
Method Summary
 List<PatternRule> getRules(InputStream is, String filename)
           
 void main(String[] args)
          Testing only.
 
Methods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternRuleLoader

public PatternRuleLoader()
Method Detail

getRules

public final List<PatternRule> getRules(InputStream is,
                                        String filename)
                                 throws IOException
Throws:
IOException

main

public final void main(String[] args)
                throws IOException
Testing only.

Throws:
IOException


Copyright © 2005-2007 Daniel Naber