Class DisambiguationRuleLoader
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.languagetool.tagging.disambiguation.rules.DisambiguationRuleLoader
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class DisambiguationRuleLoader extends org.xml.sax.helpers.DefaultHandler
LoadsDisambiguationPatternRule
s from a disambiguation rules XML file.
-
-
Constructor Summary
Constructors Constructor Description DisambiguationRuleLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DisambiguationPatternRule>
getRules(java.io.InputStream stream)
-
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
-
-
-
-
Method Detail
-
getRules
public final java.util.List<DisambiguationPatternRule> getRules(java.io.InputStream stream) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
-
-