GifBlocksRegistry

Inheritance: java.lang.Object

public final class GifBlocksRegistry

Represents the gif blocks openers registry.

Methods

MethodDescription
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:

ParameterTypeDescription
descriptorTypeNamejava.lang.StringThe 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:

ParameterTypeDescription
streamjava.io.InputStream

Returns: IGifBlockLoaderDescriptor

loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette)

public static IGifBlock loadBlockByFirstSupportedDescriptor(InputStream stream, IColorPalette containerPalette)

Parameters:

ParameterTypeDescription
streamjava.io.InputStream
containerPaletteIColorPalette

Returns: IGifBlock

registerOpener(IGifBlockLoaderDescriptor openerDescriptor)

public static void registerOpener(IGifBlockLoaderDescriptor openerDescriptor)

Registers the opener.

Parameters:

ParameterTypeDescription
openerDescriptorIGifBlockLoaderDescriptorThe opener descriptor to register.

unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)

public static void unregisterOpener(IGifBlockLoaderDescriptor openerDescriptor)

Unregisters the opener.

Parameters:

ParameterTypeDescription
openerDescriptorIGifBlockLoaderDescriptorThe opener descriptor to unregister.