de.danielnaber.languagetool.rules.patterns
Class FalseFriendRuleLoader

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

public class FalseFriendRuleLoader
extends DefaultHandler

Loads PatternRules from a false friends XML file.

Author:
Daniel Naber

Constructor Summary
FalseFriendRuleLoader()
           
 
Method Summary
 List<PatternRule> getRules(InputStream file, Language textLanguage, Language motherTongue)
           
 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

FalseFriendRuleLoader

public FalseFriendRuleLoader()
Method Detail

getRules

public final List<PatternRule> getRules(InputStream file,
                                        Language textLanguage,
                                        Language motherTongue)
                                 throws ParserConfigurationException,
                                        SAXException,
                                        IOException
Throws:
ParserConfigurationException
SAXException
IOException

main

public void main(String[] args)
          throws ParserConfigurationException,
                 SAXException,
                 IOException
Testing only.

Throws:
ParserConfigurationException
SAXException
IOException


Copyright © 2005-2007 Daniel Naber