cc.twittertools.corpus.data
Class JsonStatusBlockReader

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

public class JsonStatusBlockReader
extends Object
implements StatusStream

Abstraction for an stream of statuses, backed by an underlying gzipped file with JSON-encoded tweets, one per line.


Constructor Summary
JsonStatusBlockReader(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

JsonStatusBlockReader

public JsonStatusBlockReader(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