ImageLoadersRegistry
Inheritance: java.lang.Object
public final class ImageLoadersRegistry
Represents the image loaders registry.
Methods
Method | Description |
---|---|
getRegisteredFormats() | Gets the registered image loading formats. |
getRegisteredDescriptors() | Gets the registered descriptors. |
register(IImageLoaderDescriptor imageLoaderDescriptor) | Registers the specified image loader descriptor. |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName) | Gets the first supported descriptor by its type name. |
getFirstSupportedDescriptorByFileFormat(long fileFormat) | Gets the first supported file format by its type name. |
getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions) | Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions . |
createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions) | Creates the first found loader suitable for the specified stream and optionally the loadOptions . |
registerLoader(IImageLoaderDescriptor loaderDescriptor) | Registers the loader. |
unregisterLoader(IImageLoaderDescriptor loaderDescriptor) | Unregisters the loader. |
getRegisteredFormats()
public static long getRegisteredFormats()
Gets the registered image loading formats.
Value: The registered image loading formats.
Returns: long
getRegisteredDescriptors()
public static IImageLoaderDescriptor[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.
Returns: com.aspose.imaging.IImageLoaderDescriptor[]
register(IImageLoaderDescriptor imageLoaderDescriptor)
public static synchronized void register(IImageLoaderDescriptor imageLoaderDescriptor)
Registers the specified image loader descriptor.
Parameters:
Parameter | Type | Description |
---|---|---|
imageLoaderDescriptor | IImageLoaderDescriptor | The image loader descriptor. |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
public static IImageLoaderDescriptor 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 loader descriptor will be actually the last registered. |
Returns: IImageLoaderDescriptor - The first found loader descriptor or null if not such descriptor is found.
getFirstSupportedDescriptorByFileFormat(long fileFormat)
public static IImageLoaderDescriptor getFirstSupportedDescriptorByFileFormat(long fileFormat)
Gets the first supported file format by its type name.
Parameters:
Parameter | Type | Description |
---|---|---|
fileFormat | long | The supported descriptor file format. |
The first loader descriptor will be actually the last registered. |
Returns: IImageLoaderDescriptor - The first found loader descriptor or null if not such descriptor is found.
getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)
public static IImageLoaderDescriptor getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)
Gets the fist found supported descriptor suitable for the specified stream
and optionally the loadOptions
.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | The stream. |
loadOptions | LoadOptions | The load options. |
The first loader descriptor will be actually the last registered. |
Returns:
IImageLoaderDescriptor - The loader descriptor which supports the specified stream
and loadOptions
or null if no such descriptor is found.
createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)
public static IImageLoader createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)
Creates the first found loader suitable for the specified stream
and optionally the loadOptions
.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | The stream. |
loadOptions | LoadOptions | The load options. |
The first loader will be actually the last registered. |
Returns:
IImageLoader - The loader which supports the specified stream
and loadOptions
or null if no such loader is found.
registerLoader(IImageLoaderDescriptor loaderDescriptor)
public static void registerLoader(IImageLoaderDescriptor loaderDescriptor)
Registers the loader.
Parameters:
Parameter | Type | Description |
---|---|---|
loaderDescriptor | IImageLoaderDescriptor | The loader descriptor to register. |
unregisterLoader(IImageLoaderDescriptor loaderDescriptor)
public static synchronized void unregisterLoader(IImageLoaderDescriptor loaderDescriptor)
Unregisters the loader.
Parameters:
Parameter | Type | Description |
---|---|---|
loaderDescriptor | IImageLoaderDescriptor | The loader descriptor to unregister. |