B C D E G H I N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- BZ2 - org.wikidata.wdtk.util.CompressionType
C
- CompressionType - Enum in org.wikidata.wdtk.util
-
Enum for denoting several basic file types for which we provide transparent decompression.
- createDirectoryManager(String, boolean) - Static method in class org.wikidata.wdtk.util.DirectoryManagerFactory
-
Creates a new
DirectoryManagerfor the given directory. - createDirectoryManager(Path, boolean) - Static method in class org.wikidata.wdtk.util.DirectoryManagerFactory
-
Creates a new
DirectoryManagerfor the given directory path. - createFile(String, InputStream) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Creates a new file in the current directory, and fill it with the data from the given input stream.
- createFile(String, InputStream) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- createFile(String, String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Creates a new file in the current directory, and fill it with the given data, encoded in UTF-8.
- createFile(String, String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- createFileAtomic(String, InputStream) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Creates a new file in the current directory, and fill it with the data from the given input stream.
- createFileAtomic(String, InputStream) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
D
- DirectoryManager - Interface in org.wikidata.wdtk.util
-
Interface for classes that read and write files from one directory.
- DirectoryManagerFactory - Class in org.wikidata.wdtk.util
-
Static helper class for creating
DirectoryManagerobjects. - DirectoryManagerFactory() - Constructor for class org.wikidata.wdtk.util.DirectoryManagerFactory
- DirectoryManagerImpl - Class in org.wikidata.wdtk.util
-
Class to read and write files from one directory.
- DirectoryManagerImpl(Path, Boolean) - Constructor for class org.wikidata.wdtk.util.DirectoryManagerImpl
-
Constructor
E
- equals(Object) - Method in class org.wikidata.wdtk.util.Timer
G
- getAvgCpuTime() - Method in class org.wikidata.wdtk.util.Timer
-
Return the average CPU time across all measurements.
- getAvgWallTime() - Method in class org.wikidata.wdtk.util.Timer
-
Return the average wall clock time across all measurements.
- getCompressorInputStream(InputStream, CompressionType) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
-
Returns an input stream that applies the required decompression to the given input stream.
- getInputStreamForFile(String, CompressionType) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Returns an input stream to access file of the given name within the current directory, possibly uncompressing it if required.
- getInputStreamForFile(String, CompressionType) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- getInputStreamForUrl(String) - Method in interface org.wikidata.wdtk.util.WebResourceFetcher
-
Returns an InputStream for the document at the given URL.
- getInputStreamForUrl(String) - Method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
- getName() - Method in class org.wikidata.wdtk.util.Timer
-
Get the string name of the timer.
- getNamedTimer(String) - Static method in class org.wikidata.wdtk.util.Timer
-
Get a timer of the given string name that takes all possible times (todos) for the current thread.
- getNamedTimer(String, int) - Static method in class org.wikidata.wdtk.util.Timer
-
Get a timer of the given string name and todos for the current thread.
- getNamedTimer(String, int, long) - Static method in class org.wikidata.wdtk.util.Timer
-
Get a timer of the given string name for the given thread.
- getNamedTotalTimer(String) - Static method in class org.wikidata.wdtk.util.Timer
-
Collect the total times measured by all known named timers of the given name.
- getOutputStreamForFile(String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Opens and returns an output stream that can be used to write to the file of the given name within the current directory.
- getOutputStreamForFile(String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- getProxy() - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Returns the proxy that will be used for all requests made by Wikidata Toolkit.
- getSubdirectories(String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Returns a list of the names of all subdirectories of the base directory.
- getSubdirectories(String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- getSubdirectoryManager(String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Returns a new directory manager for the subdirectory of the given name.
- getSubdirectoryManager(String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- getThreadId() - Method in class org.wikidata.wdtk.util.Timer
-
Get the ID of the thread for which this timer was created.
- getTotalCpuTime() - Method in class org.wikidata.wdtk.util.Timer
-
Get the total recorded CPU time in nanoseconds.
- getTotalWallTime() - Method in class org.wikidata.wdtk.util.Timer
-
Get the total recorded wall clock time in nanoseconds.
- getUrlConnection(URL) - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Opens a basic URL connection for the given URL and performs basic configurations.
- getUserAgent() - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Returns the string that will be used to identify the user agent on all requests made by Wikidata Toolkit.
- GZIP - org.wikidata.wdtk.util.CompressionType
H
- hasFile(String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Checks if there is a file of the given name.
- hasFile(String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- hashCode() - Method in class org.wikidata.wdtk.util.Timer
- hasNext() - Method in class org.wikidata.wdtk.util.NestedIterator
- hasProxy() - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Checks whether a proxy is set.
- hasSubdirectory(String) - Method in interface org.wikidata.wdtk.util.DirectoryManager
-
Checks if there is a subdirectory of the given name.
- hasSubdirectory(String) - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
I
- isRunning() - Method in class org.wikidata.wdtk.util.Timer
-
Return true if the timer is running.
N
- NestedIterator<T> - Class in org.wikidata.wdtk.util
-
Given an iterable of iterables of T, this class simulates an iterator of T.
- NestedIterator(Iterable<? extends Iterable<T>>) - Constructor for class org.wikidata.wdtk.util.NestedIterator
-
Constructor.
- next() - Method in class org.wikidata.wdtk.util.NestedIterator
- NONE - org.wikidata.wdtk.util.CompressionType
O
- org.wikidata.wdtk.util - package org.wikidata.wdtk.util
-
General utility package for Wikidata Toolkit.
P
- proxy - Static variable in class org.wikidata.wdtk.util.WebResourceFetcherImpl
R
- RECORD_ALL - Static variable in class org.wikidata.wdtk.util.Timer
-
Flag for indicating that all supported times should be taken.
- RECORD_CPUTIME - Static variable in class org.wikidata.wdtk.util.Timer
-
Flag for indicating that CPU time should be taken.
- RECORD_NONE - Static variable in class org.wikidata.wdtk.util.Timer
-
Flag for indicating that no times should be taken (just count runs).
- RECORD_WALLTIME - Static variable in class org.wikidata.wdtk.util.Timer
-
Flag for indicating that wall clock time should be taken.
- remove() - Method in class org.wikidata.wdtk.util.NestedIterator
- reset() - Method in class org.wikidata.wdtk.util.Timer
-
Stop the timer (if running) and reset all recorded values.
- resetNamedTimer(String) - Static method in class org.wikidata.wdtk.util.Timer
-
Reset a timer of the given string name for all todos and the current thread.
- resetNamedTimer(String, int) - Static method in class org.wikidata.wdtk.util.Timer
-
Reset a timer of the given string name for the current thread.
- resetNamedTimer(String, int, long) - Static method in class org.wikidata.wdtk.util.Timer
-
Reset a timer of the given string name for the given thread.
S
- setDirectoryManagerClass(Class<? extends DirectoryManager>) - Static method in class org.wikidata.wdtk.util.DirectoryManagerFactory
-
Sets the class of
DirectoryManagerthat should be used when creating instances here. - setProxy(Proxy) - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Sets the proxy that will be used for alle requests made by Wikidata Toolkit.
- setUserAgent(String) - Static method in class org.wikidata.wdtk.util.WebResourceFetcherImpl
-
Sets the string that will be used to identify the user agent on all requests made by Wikidata Toolkit.
- start() - Method in class org.wikidata.wdtk.util.Timer
-
Start the timer.
- startNamedTimer(String) - Static method in class org.wikidata.wdtk.util.Timer
-
Start a timer of the given string name for all todos and the current thread.
- startNamedTimer(String, int) - Static method in class org.wikidata.wdtk.util.Timer
-
Start a timer of the given string name for the current thread.
- startNamedTimer(String, int, long) - Static method in class org.wikidata.wdtk.util.Timer
-
Start a timer of the given string name for the current thread.
- stop() - Method in class org.wikidata.wdtk.util.Timer
-
Stop the timer and record the times that have passed since its start.
- stopNamedTimer(String) - Static method in class org.wikidata.wdtk.util.Timer
-
Stop a timer of the given string name for all todos and the current thread.
- stopNamedTimer(String, int) - Static method in class org.wikidata.wdtk.util.Timer
-
Stop a timer of the given string name for the current thread.
- stopNamedTimer(String, int, long) - Static method in class org.wikidata.wdtk.util.Timer
-
Stop a timer of the given string name for the given thread.
T
- Timer - Class in org.wikidata.wdtk.util
-
Class for keeping CPU and system times.
- Timer(String, int) - Constructor for class org.wikidata.wdtk.util.Timer
-
Constructor.
- Timer(String, int, long) - Constructor for class org.wikidata.wdtk.util.Timer
-
Constructor.
- toString() - Method in class org.wikidata.wdtk.util.DirectoryManagerImpl
- toString() - Method in class org.wikidata.wdtk.util.Timer
-
The implementation of toString() generates a summary of the times recorded so far.
U
- userAgent - Static variable in class org.wikidata.wdtk.util.WebResourceFetcherImpl
V
- valueOf(String) - Static method in enum org.wikidata.wdtk.util.CompressionType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.wikidata.wdtk.util.CompressionType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WebResourceFetcher - Interface in org.wikidata.wdtk.util
-
Interface to access files on the Web.
- WebResourceFetcherImpl - Class in org.wikidata.wdtk.util
-
Standard implementation of
WebResourceFetcher. - WebResourceFetcherImpl() - Constructor for class org.wikidata.wdtk.util.WebResourceFetcherImpl
All Classes All Packages