anl.aida.reader
Class NYTimesReader

java.lang.Object
  extended by anl.aida.reader.AbstractAIDAComponentReader
      extended by anl.aida.reader.ContentComponentReader
          extended by 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.


Field Summary
private static java.lang.String CCONTENT_DIR_KEY
           
private static java.lang.String CCONTENT_INDEX_KEY
           
static java.lang.String INDEX_FILE
           
 
Fields inherited from class anl.aida.reader.ContentComponentReader
reader
 
Fields inherited from class anl.aida.reader.AbstractAIDAComponentReader
indexIter, lineItems, location, processors, startDate
 
Fields inherited from interface anl.aida.reader.AIDAComponentReader
MESSAGE_DIGEST
 
Constructor Summary
NYTimesReader()
           
 
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 anl.aida.reader.ContentComponentReader
getNextResult, initialize
 
Methods inherited from class anl.aida.reader.AbstractAIDAComponentReader
checkDate, close, getDocumentURL, getNext, hasNext, postNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

NYTimesReader

public NYTimesReader()
Method Detail

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.