MwDumpFilepublic class WmfLocalDumpFile extends WmfDumpFile
MwDumpFile.DateComparatordateStamp, DUMP_SITE_BASE_URL, projectName| Constructor | Description |
|---|---|
WmfLocalDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.DirectoryManager dumpfileDirectoryManager,
DumpContentType dumpContentType) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
fetchIsDone() |
Finds out if the dump is ready.
|
DumpContentType |
getDumpContentType() |
Returns information about the content of the dump.
|
java.lang.String |
getDumpfileDirectory() |
Returns the directory where this dump file data should be.
|
java.io.InputStream |
getDumpFileStream() |
Returns an input stream that provides access to the (uncompressed) text
content of the dump file.
|
void |
prepareDumpFile() |
Prepares the dump file for access via
MwDumpFile.getDumpFileStream() or
MwDumpFile.getDumpFileReader(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDateStamp, getDateStampFromDumpFileDirectoryName, getDumpFileCompressionType, getDumpFileDirectoryName, getDumpFileName, getDumpFilePostfix, getDumpFileReader, getDumpFileWebDirectory, getProjectName, isAvailable, isRevisionDumpFile, toStringpublic WmfLocalDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.DirectoryManager dumpfileDirectoryManager,
DumpContentType dumpContentType)
dateStamp - dump date in format YYYYMMDDprojectName - project name stringdumpfileDirectoryManager - the directory manager for the directory where dumps should be
downloaded todumpContentType - the type of dump this representspublic java.lang.String getDumpfileDirectory()
public DumpContentType getDumpContentType()
MwDumpFilepublic java.io.InputStream getDumpFileStream()
throws java.io.IOException
MwDumpFileIt is important to close the stream after use.
java.io.IOException - if the dump file contents could not be accessedpublic void prepareDumpFile()
throws java.io.IOException
MwDumpFileMwDumpFile.getDumpFileStream() or
MwDumpFile.getDumpFileReader(). In particular, this will download any
remote files.java.io.IOException - if there was a problem preparing the filesprotected boolean fetchIsDone()
WmfDumpFilefetchIsDone in class WmfDumpFileCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage