public class MwRevisionDumpFileProcessor extends Object implements MwDumpFileProcessor
Constructor and Description |
---|
MwRevisionDumpFileProcessor(MwRevisionProcessor mwRevisionProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
processDumpFileContents(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(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