ImageLoadersRegistry

Inheritance: java.lang.Object

public final class ImageLoadersRegistry

Represents the image loaders registry.

Constructors

ConstructorDescription
ImageLoadersRegistry()

Methods

MethodDescription
createFirstSupportedLoader(InputStream stream, LoadOptions loadOptions)Creates the first found loader suitable for the specified stream and optionally the loadOptions .
createFirstSupportedLoader_internalized(System.IO.Stream stream, LoadOptions loadOptions)
equals(Object arg0)
getClass()
getFirstSupportedDescriptor(InputStream stream, LoadOptions loadOptions)Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions .
getFirstSupportedDescriptorByFileFormat(long fileFormat)Gets the first supported file format by its type name.
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)Gets the first supported descriptor by its type name.
getFirstSupportedDescriptor_internalized(System.IO.Stream stream, LoadOptions loadOptions)
getRegisteredDescriptors()Gets the registered descriptors.
getRegisteredFormats()Gets the registered image loading formats.
hashCode()
notify()
notifyAll()
register(IImageLoaderDescriptor imageLoaderDescriptor)Registers the specified image loader descriptor.
registerLoader(IImageLoaderDescriptor loaderDescriptor)Registers the loader.
toString()
unregisterLoader(IImageLoaderDescriptor loaderDescriptor)Unregisters the loader.
wait()
wait(long arg0)
wait(long arg0, int arg1)

ImageLoadersRegistry()

public ImageLoadersRegistry()

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:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
loadOptionsLoadOptionsThe 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.

createFirstSupportedLoader_internalized(System.IO.Stream stream, LoadOptions loadOptions)

public static IImageLoader createFirstSupportedLoader_internalized(System.IO.Stream stream, LoadOptions loadOptions)

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.Stream
loadOptionsLoadOptions

Returns: IImageLoader

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
loadOptionsLoadOptionsThe 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.

getFirstSupportedDescriptorByFileFormat(long fileFormat)

public static IImageLoaderDescriptor getFirstSupportedDescriptorByFileFormat(long fileFormat)

Gets the first supported file format by its type name.

Parameters:

ParameterTypeDescription
fileFormatlongThe 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.

getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

public static IImageLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

Gets the first supported descriptor by its type name.

Parameters:

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

getFirstSupportedDescriptor_internalized(System.IO.Stream stream, LoadOptions loadOptions)

public static IImageLoaderDescriptor getFirstSupportedDescriptor_internalized(System.IO.Stream stream, LoadOptions loadOptions)

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.Stream
loadOptionsLoadOptions

Returns: IImageLoaderDescriptor

getRegisteredDescriptors()

public static IImageLoaderDescriptor[] getRegisteredDescriptors()

Gets the registered descriptors.

Value: The registered descriptors.

Returns: com.aspose.psd.IImageLoaderDescriptor[]

getRegisteredFormats()

public static long getRegisteredFormats()

Gets the registered image loading formats.

Value: The registered image loading formats.

Returns: long

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

register(IImageLoaderDescriptor imageLoaderDescriptor)

public static void register(IImageLoaderDescriptor imageLoaderDescriptor)

Registers the specified image loader descriptor.

Parameters:

ParameterTypeDescription
imageLoaderDescriptorIImageLoaderDescriptorThe image loader descriptor.

registerLoader(IImageLoaderDescriptor loaderDescriptor)

public static void registerLoader(IImageLoaderDescriptor loaderDescriptor)

Registers the loader.

Parameters:

ParameterTypeDescription
loaderDescriptorIImageLoaderDescriptorThe loader descriptor to register.

toString()

public String toString()

Returns: java.lang.String

unregisterLoader(IImageLoaderDescriptor loaderDescriptor)

public static void unregisterLoader(IImageLoaderDescriptor loaderDescriptor)

Unregisters the loader.

Parameters:

ParameterTypeDescription
loaderDescriptorIImageLoaderDescriptorThe loader descriptor to unregister.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int