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

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

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

    params.setText(text);

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

    params.setUrl(url);

    return GET("URLGetText", "url", params);
  }
Beispiel #4
0
  public String URLGetText(String url, AlchemyAPI_TextParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException,
          ExtractorDocumentLevelException {
    CheckURL(url);

    params.setUrl(url);

    nGetTextRequests++;
    return GET("URLGetText", "url", params);
  }