Example #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);
  }
Example #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);
  }
Example #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);
  }
Example #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);
  }