Beispiel #1
0
  public Document HTMLGetLanguage(String html, String url, AlchemyAPI_LanguageParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckHTML(html, url);

    params.setUrl(url);
    params.setHtml(html);

    return POST("HTMLGetLanguage", "html", params);
  }
Beispiel #2
0
  public Document TextGetLanguage(String text, AlchemyAPI_LanguageParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckText(text);

    params.setText(text);

    return POST("TextGetLanguage", "text", params);
  }
Beispiel #3
0
  public Document URLGetLanguage(String url, AlchemyAPI_LanguageParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckURL(url);

    params.setUrl(url);

    return GET("URLGetLanguage", "url", params);
  }