GifBlocksRegistry
Inheritance: java.lang.Object
public final class GifBlocksRegistry
Represents the gif blocks openers registry.
Methods
Method | Description |
---|---|
getRegisteredDescriptors() | Gets the registered descriptors. |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName) | Gets the first supported descriptor by its type name. |
getFirstSupportedDescriptor(InputStream stream) | |
loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette) | |
registerOpener(IGifBlockLoaderDescriptor openerDescriptor) | Registers the opener. |
unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor) | Unregisters the opener. |
getRegisteredDescriptors()
public static IGifBlockLoaderDescriptor[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.
Returns: com.aspose.imaging.fileformats.gif.IGifBlockLoaderDescriptor[]
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
public static IGifBlockLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
Parameters:
Parameter | Type | Description |
---|---|---|
descriptorTypeName | java.lang.String | The descriptor type name. |
The first opener descriptor will be actually the last registered. |
Returns: IGifBlockLoaderDescriptor - The first found opener descriptor or null if not such descriptor is found.
getFirstSupportedDescriptor(InputStream stream)
public static IGifBlockLoaderDescriptor getFirstSupportedDescriptor(InputStream stream)
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream |
Returns: IGifBlockLoaderDescriptor
loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette)
public static IGifBlock loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette)
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | |
containerPalette | IColorPalette |
Returns: IGifBlock
registerOpener(IGifBlockLoaderDescriptor openerDescriptor)
public static void registerOpener(IGifBlockLoaderDescriptor openerDescriptor)
Registers the opener.
Parameters:
Parameter | Type | Description |
---|---|---|
openerDescriptor | IGifBlockLoaderDescriptor | The opener descriptor to register. |
unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
public static void unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)
Unregisters the opener.
Parameters:
Parameter | Type | Description |
---|---|---|
openerDescriptor | IGifBlockLoaderDescriptor | The opener descriptor to unregister. |