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