MwDumpFileProcessorpublic class MwRevisionDumpFileProcessor extends java.lang.Object implements MwDumpFileProcessor
| Constructor | Description |
|---|---|
MwRevisionDumpFileProcessor(MwRevisionProcessor mwRevisionProcessor) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
processDumpFileContents(java.io.InputStream inputStream,
MwDumpFile dumpFile) |
Process dump file data from the given input stream.
|
void |
reset() |
Resets the internal state of the object.
|
public MwRevisionDumpFileProcessor(MwRevisionProcessor mwRevisionProcessor)
mwRevisionProcessor - the revision processor to which all revisions will be reportedpublic void reset()
processDumpFileContents(InputStream, MwDumpFile) will continue
to add to the internal state. This is useful for processing dumps that
are split into several parts.
This will not unregister any MwRevisionProcessors.
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