public class FalseFriendRuleLoader extends DefaultHandler
PatternRules 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, warningpublic FalseFriendRuleLoader(Language motherTongue)
public final List<AbstractPatternRule> getRules(File file, Language language, Language motherTongue) throws IOException
file - XML file with false friend rulesIOExceptionpublic final List<AbstractPatternRule> getRules(InputStream stream, Language textLanguage, Language motherTongue) throws ParserConfigurationException, SAXException, IOException