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