コード例 #1
0
ファイル: AlchemyAPI.java プロジェクト: JiayunLi/be223a
  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
ファイル: AlchemyAPI.java プロジェクト: JiayunLi/be223a
  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
ファイル: AlchemyAPI.java プロジェクト: JiayunLi/be223a
  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);
  }