public class DecompressionRegistry extends Object
This class allows to keep track of what classes to use to decompress streams, e.g. JPEG, JPEG2K...
Modifier and Type | Field and Description |
---|---|
protected static Hashtable<String,Class<?>> |
readerClasses |
Constructor and Description |
---|
DecompressionRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
addReaderClass(String compressionType,
String className)
Registers a reader class for given compression type
|
static Object |
createReader(String compressionType)
Instantiates a reader object for the specified compression type
|
static Class<?> |
getReaderClass(String compressionType)
Retrieves a registered reader class
|
static void |
loadMaps(String xmlFileUrl,
boolean replace)
Loads an xml file containing mappings from types of readers/writers to class
|
public static Object createReader(String compressionType) throws IllegalStateException
compressionType
- IllegalStateException
public static void addReaderClass(String compressionType, String className) throws IllegalStateException
compressionType
- className
- IllegalStateException
public static Class<?> getReaderClass(String compressionType)
compressionType
- public static void loadMaps(String xmlFileUrl, boolean replace)
xmlFileUrl
- replace
- Copyright © 2016 Sensia Software LLC. All rights reserved.