anl.aida.reader
Class NYTimesReader
java.lang.Object
anl.aida.reader.AbstractAIDAComponentReader
anl.aida.reader.ContentComponentReader
anl.aida.reader.NYTimesReader
- All Implemented Interfaces:
- AIDAComponentReader
public class NYTimesReader
- extends ContentComponentReader
AIDAComponentReader implementation for reading NYTimes web entries. The list
of links should be in a file in the "standard" index format. Namely,
timestamp:::link:::title:::author
The author or authors is optional.
Method Summary |
protected java.lang.String |
getCacheDirectoryKey()
Gets the directory to cache the downloaded content in. |
protected java.lang.String |
getCacheIndexKey()
Gets the name of the index file to create when caching the content. |
protected java.lang.String |
getContentSource()
Gets the source of the content. |
protected java.lang.String |
getIndexFileKey()
Gets the name of the parameter key for the index file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_FILE
public static final java.lang.String INDEX_FILE
- See Also:
- Constant Field Values
CCONTENT_DIR_KEY
private static final java.lang.String CCONTENT_DIR_KEY
- See Also:
- Constant Field Values
CCONTENT_INDEX_KEY
private static final java.lang.String CCONTENT_INDEX_KEY
- See Also:
- Constant Field Values
NYTimesReader
public NYTimesReader()
getIndexFileKey
protected java.lang.String getIndexFileKey()
- Description copied from class:
AbstractAIDAComponentReader
- Gets the name of the parameter key for the index file. The index file
contains the links etc to read.
- Specified by:
getIndexFileKey
in class AbstractAIDAComponentReader
- Returns:
- the name of the parameter key for the index file.
getContentSource
protected java.lang.String getContentSource()
- Description copied from class:
ContentComponentReader
- Gets the source of the content.
- Specified by:
getContentSource
in class ContentComponentReader
- Returns:
- the source of the content.
getCacheDirectoryKey
protected java.lang.String getCacheDirectoryKey()
- Description copied from class:
ContentComponentReader
- Gets the directory to cache the downloaded content in.
- Specified by:
getCacheDirectoryKey
in class ContentComponentReader
- Returns:
- the directory to cache the downloaded content in.
getCacheIndexKey
protected java.lang.String getCacheIndexKey()
- Description copied from class:
ContentComponentReader
- Gets the name of the index file to create when caching the content.
- Specified by:
getCacheIndexKey
in class ContentComponentReader
- Returns:
- the name of the index file to create when caching the content.