MwDumpFileProcessorpublic class MwSitesDumpFileProcessor extends java.lang.Object implements MwDumpFileProcessor
The class expects all URLs in the dump to be protocol-relative (i.e., starting with "//" rather than with "http://" or "https://") and it will prepend "http:".
| Constructor | Description |
|---|---|
MwSitesDumpFileProcessor() |
| Modifier and Type | Method | Description |
|---|---|---|
org.wikidata.wdtk.datamodel.interfaces.Sites |
getSites() |
Returns the information about sites that has been extracted from the dump
file(s) processed earlier.
|
void |
processDumpFileContents(java.io.InputStream inputStream,
MwDumpFile dumpFile) |
Process dump file data from the given input stream.
|
public org.wikidata.wdtk.datamodel.interfaces.Sites getSites()
public void processDumpFileContents(java.io.InputStream inputStream,
MwDumpFile dumpFile)
MwDumpFileProcessor
The input stream is obtained from the given dump file via
MwDumpFile.getDumpFileStream(). It will be closed by the
caller.
processDumpFileContents in interface MwDumpFileProcessorinputStream - to access the contents of the dumpdumpFile - to access further information about this dumpCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage