public class FalseFriendRuleLoader extends DefaultHandler
PatternRule
s from a false friends XML file.Constructor and Description |
---|
FalseFriendRuleLoader(Language motherTongue) |
FalseFriendRuleLoader(String falseFriendHint,
String falseFriendSugg) |
Modifier and Type | Method and Description |
---|---|
List<AbstractPatternRule> |
getRules(File file,
Language language,
Language motherTongue) |
List<AbstractPatternRule> |
getRules(InputStream stream,
Language textLanguage,
Language motherTongue) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public FalseFriendRuleLoader(Language motherTongue)
public final List<AbstractPatternRule> getRules(File file, Language language, Language motherTongue) throws IOException
file
- XML file with false friend rulesIOException
public final List<AbstractPatternRule> getRules(InputStream stream, Language textLanguage, Language motherTongue) throws ParserConfigurationException, SAXException, IOException