public class AlchemyDocData extends DocData
setApiKey method. An API key may be obtained from the Alchemy
web site.| Constructor and Description |
|---|
AlchemyDocData(java.lang.String url)
Create a new AlchemyDocData object for the specified URL
|
AlchemyDocData(java.net.URL url)
Create a new AlchemyDocData object for the specified URL
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
Get the body of the document.
|
java.lang.String |
getName()
Get the name of the document.
|
static void |
setApiKey(java.lang.String key)
Set the API key for Alchemy.
|
addKey, addKey, addKeyMap, calculateSimilarity, clearKeys, equals, getKeyMap, getKeys, getLink, getSections, getSummary, getTimeStamp, getValueForKey, hashCode, loadContent, matchesKey, setBody, setLink, setName, setSummary, setTimeStamp, toStringpublic AlchemyDocData(java.lang.String url)
throws java.net.MalformedURLException
url - the URL of the documentjava.net.MalformedURLException - if the argument is not a valid URLpublic AlchemyDocData(java.net.URL url)
url - the URL of the documentpublic java.lang.String getBody()
public java.lang.String getName()
public static void setApiKey(java.lang.String key)
key - the Alchemy API key.