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