anl.aida.reader
Class NYTIndexMaker
java.lang.Object
anl.aida.reader.NYTIndexMaker
public class NYTIndexMaker
- extends java.lang.Object
Quick and dirty code to create a list of articles from
NYT search API results. The list will have one article
entry per line. Each line contains the date, article link,
title and author, delimited by ":::".
Field Summary |
private java.util.Calendar |
cal
|
private java.text.DateFormat |
format
|
private static java.lang.String |
key
|
private java.io.PrintWriter |
writer
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
private static final java.lang.String key
- See Also:
- Constant Field Values
cal
private java.util.Calendar cal
writer
private java.io.PrintWriter writer
format
private java.text.DateFormat format
NYTIndexMaker
public NYTIndexMaker(java.lang.String file)
throws java.io.IOException
- Throws:
java.io.IOException
run
public void run()
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
writeLine
private void writeLine(NYTEntry entry)
throws java.text.ParseException
- Throws:
java.text.ParseException
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException