MwDumpFilepublic class WmfOnlineStandardDumpFile extends WmfDumpFile
MwDumpFile.DateComparatordateStamp, DUMP_SITE_BASE_URL, projectName| Constructor | Description |
|---|---|
WmfOnlineStandardDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.WebResourceFetcher webResourceFetcher,
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.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 WmfOnlineStandardDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.WebResourceFetcher webResourceFetcher,
org.wikidata.wdtk.util.DirectoryManager dumpfileDirectoryManager,
DumpContentType dumpContentType)
dateStamp - dump date in format YYYYMMDDprojectName - project name stringwebResourceFetcher - object to use for accessing the webdumpfileDirectoryManager - the directory manager for the directory where dumps should be
downloaded todumpContentType - the type of dump this representspublic 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