public class MwSitesDumpFileProcessor extends 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 and Description |
---|
MwSitesDumpFileProcessor() |
Modifier and Type | Method and Description |
---|---|
Sites |
getSites()
Returns the information about sites that has been extracted from the dump
file(s) processed earlier.
|
void |
processDumpFileContents(InputStream inputStream,
MwDumpFile dumpFile)
Process dump file data from the given input stream.
|
public Sites getSites()
public void processDumpFileContents(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 MwDumpFileProcessor
inputStream
- to access the contents of the dumpdumpFile
- to access further information about this dumpCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage