public final class GifBlocksRegistry extends Object
Represents the gif blocks openers registry.
Modifier and Type | Method and Description |
---|---|
static IGifBlockLoaderDescriptor |
getFirstSupportedDescriptor(InputStream stream) |
static IGifBlockLoaderDescriptor |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
|
static IGifBlockLoaderDescriptor[] |
getRegisteredDescriptors()
Gets the registered descriptors.
|
static IGifBlock |
loadBlockByFirstSupportedDescriptor(InputStream stream,
IColorPalette containerPalette) |
static void |
registerOpener(IGifBlockLoaderDescriptor openerDescriptor)
Registers the opener.
|
static void |
unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
Unregisters the opener.
|
public static IGifBlockLoaderDescriptor[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.public static IGifBlockLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
descriptorTypeName
- The descriptor type name.
The first opener descriptor will be actually the last registered.
public static IGifBlockLoaderDescriptor getFirstSupportedDescriptor(InputStream stream)
public static IGifBlock loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette)
public static void registerOpener(IGifBlockLoaderDescriptor openerDescriptor)
Registers the opener.
openerDescriptor
- The opener descriptor to register.public static void unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
Unregisters the opener.
openerDescriptor
- The opener descriptor to unregister.