public class WikipediaPagesBz2InputStream extends Object
| Constructor and Description |
|---|
WikipediaPagesBz2InputStream(String file)
Creates an input stream for reading Wikipedia articles from a bz2-compressed dump file.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
boolean |
readNext(WikipediaPage page)
Reads the next Wikipedia page.
|
public WikipediaPagesBz2InputStream(String file) throws IOException
file - path to dump fileIOExceptionpublic boolean readNext(WikipediaPage page) throws IOException
page - WikipediaPage object to read intotrue if page is successfully readIOExceptionCopyright © 2015. All rights reserved.