Uses of Enum
org.wikidata.wdtk.util.CompressionType
Packages that use CompressionType
Package
Description
Code that is specific to the dump file exports of the Wikimedia Foundation (WMF).
Package for general helper code that is only used for testing purposes.
General utility package for Wikidata Toolkit.
-
Uses of CompressionType in org.wikidata.wdtk.dumpfiles.wmf
Methods in org.wikidata.wdtk.dumpfiles.wmf that return CompressionTypeModifier and TypeMethodDescriptionstatic CompressionType
WmfDumpFile.getDumpFileCompressionType
(String fileName) Returns the compression type of this kind of dump file using file suffixes -
Uses of CompressionType in org.wikidata.wdtk.testing
Methods in org.wikidata.wdtk.testing with parameters of type CompressionTypeModifier and TypeMethodDescriptionstatic byte[]
MockStringContentFactory.getBytesFromString
(String string, CompressionType compressionType) Turns a string into a sequence of bytes, possibly compressed.MockDirectoryManager.getInputStreamForFile
(String fileName, CompressionType compressionType) void
MockDirectoryManager.setFileContents
(Path path, String contents, CompressionType compressionType) Sets the contents of the file at the given path and creates all parent directories in our mocked view of the file system.void
MockWebResourceFetcher.setWebResourceContents
(String url, String contents, CompressionType compressionType) Defines the contents of a new web resource.void
MockWebResourceFetcher.setWebResourceContentsFromResource
(String url, String resource, Class<?> resourceClass, CompressionType compressionType) Defines the contents of a new web resource by taking the string from a given (Java) resource, possibly using additional compression. -
Uses of CompressionType in org.wikidata.wdtk.util
Methods in org.wikidata.wdtk.util that return CompressionTypeModifier and TypeMethodDescriptionstatic CompressionType
Returns the enum constant of this type with the specified name.static CompressionType[]
CompressionType.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.wikidata.wdtk.util with parameters of type CompressionTypeModifier and TypeMethodDescriptionprotected InputStream
DirectoryManagerImpl.getCompressorInputStream
(InputStream inputStream, CompressionType compressionType) Returns an input stream that applies the required decompression to the given input stream.DirectoryManager.getInputStreamForFile
(String fileName, CompressionType compressionType) Returns an input stream to access file of the given name within the current directory, possibly uncompressing it if required.DirectoryManagerImpl.getInputStreamForFile
(String fileName, CompressionType compressionType)