Class BitextPatternRuleLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.languagetool.rules.patterns.bitext.BitextPatternRuleLoader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Loads
PatternRule
s from an XML file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<BitextPatternRule>
getRules
(InputStream is, String filename) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
BitextPatternRuleLoader
public BitextPatternRuleLoader()
-
-
Method Details
-
getRules
- Throws:
IOException
-