Package org.languagetool.rules.patterns

Examples of org.languagetool.rules.patterns.PasswordAuthenticator


* @author Daniel Naber
*/
public final class XMLValidator {

  public XMLValidator() {
    Authenticator.setDefault(new PasswordAuthenticator());
  }
View Full Code Here


  public final List<DisambiguationPatternRule> getRules(final InputStream stream)
      throws ParserConfigurationException, SAXException, IOException {
    final DisambiguationRuleHandler handler = new DisambiguationRuleHandler();
    final SAXParserFactory factory = SAXParserFactory.newInstance();
    final SAXParser saxParser = factory.newSAXParser();
    Authenticator.setDefault(new PasswordAuthenticator());
    saxParser.parse(stream, handler);
    return handler.getDisambRules();
  }
View Full Code Here

TOP

Related Classes of org.languagetool.rules.patterns.PasswordAuthenticator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.