cc.twittertools.corpus.data
Class JsonStatusBlockReader
java.lang.Object
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.
|
Method Summary |
void |
close()
|
Status |
next()
Returns the next status, or null if no more statuses. |
JsonStatusBlockReader
public JsonStatusBlockReader(File file)
throws IOException
- Throws:
IOException
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