public class ImageLoadersRegistry extends Object
Represents the image loaders registry.
Constructor and Description |
---|
ImageLoadersRegistry() |
Modifier and Type | Method and Description |
---|---|
static IImageLoader |
createFirstSupportedLoader(InputStream stream,
LoadOptions loadOptions)
Creates the first found loader suitable for the specified
stream and optionally the loadOptions . |
static IImageLoaderDescriptor |
getFirstSupportedDescriptor(InputStream stream,
LoadOptions loadOptions)
Gets the fist found supported descriptor suitable for the specified
stream and optionally the loadOptions . |
static IImageLoaderDescriptor |
getFirstSupportedDescriptorByFileFormat(long fileFormat)
Gets the first supported file format by its type name.
|
static IImageLoaderDescriptor |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
|
static IImageLoaderDescriptor[] |
getRegisteredDescriptors()
Gets the registered descriptors.
|
static long |
getRegisteredFormats()
Gets the registered image loading formats.
|
static void |
register(IImageLoaderDescriptor loaderDescriptor)
Registers the specified image loader descriptor.
|
static void |
registerLoader(IImageLoaderDescriptor loaderDescriptor)
Registers the loader.
|
static void |
unregisterLoader(IImageLoaderDescriptor loaderDescriptor)
Unregisters the loader.
|
public static long getRegisteredFormats()
Gets the registered image loading formats.
Value: The registered image loading formats.public static IImageLoaderDescriptor[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.public static void register(IImageLoaderDescriptor loaderDescriptor)
Registers the specified image loader descriptor.
loaderDescriptor
- The image loader descriptor.public static IImageLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
descriptorTypeName
- The descriptor type name.
The first loader descriptor will be actually the last registered.
public static IImageLoaderDescriptor getFirstSupportedDescriptorByFileFormat(long fileFormat)
Gets the first supported file format by its type name.
fileFormat
- The supported descriptor file format.
The first loader descriptor will be actually the last registered.
public static IImageLoaderDescriptor getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)
Gets the fist found supported descriptor suitable for the specified stream
and optionally the loadOptions
.
stream
- The stream.loadOptions
- The load options.
The first loader descriptor will be actually the last registered.
stream
and loadOptions
or null if no such descriptor is found.public static IImageLoader createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)
Creates the first found loader suitable for the specified stream
and optionally the loadOptions
.
stream
- The stream.loadOptions
- The load options.
The first loader will be actually the last registered.
stream
and loadOptions
or null if no such loader is found.public static void registerLoader(IImageLoaderDescriptor loaderDescriptor)
Registers the loader.
loaderDescriptor
- The loader descriptor to register.public static void unregisterLoader(IImageLoaderDescriptor loaderDescriptor)
Unregisters the loader.
loaderDescriptor
- The loader descriptor to unregister.