cc.twittertools.corpus.data
Class JsonStatusCorpusReader

java.lang.Object
  extended by cc.twittertools.corpus.data.JsonStatusCorpusReader
All Implemented Interfaces:
StatusStream

public class JsonStatusCorpusReader
extends Object
implements StatusStream

Abstraction for a corpus of statuses. A corpus is assumed to consist of a number of blocks, each represented by a gzipped file within a root directory. This object will allow to caller to read through all blocks, in sorted lexicographic order of the files.


Constructor Summary
JsonStatusCorpusReader(File file)
           
 
Method Summary
 void close()
           
 Status next()
          Returns the next status, or null if no more statuses.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonStatusCorpusReader

public JsonStatusCorpusReader(File file)
                       throws IOException
Throws:
IOException
Method Detail

next

public Status next()
            throws IOException
Returns the next status, or null if no more statuses.

Specified by:
next in interface StatusStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface StatusStream
Throws:
IOException