Packages

 

com.aspose.cad

Class ImageLoadersRegistry



  • public class ImageLoadersRegistry
    extends Object

    Represents the image loaders registry.

    • Constructor Detail

      • ImageLoadersRegistry

        public ImageLoadersRegistry()
    • Method Detail

      • getRegisteredFormats

        public static List<Long> getRegisteredFormats()

        Gets the registered image loading formats.

        Returns:
        The registered image loading formats.
      • getRegisteredDescriptors

        public static IImageLoaderDescriptor[] getRegisteredDescriptors()

        Gets the registered descriptors.

        Returns:
        The registered descriptors.
      • getFirstSupportedDescriptorByTypeName

        public static IImageLoaderDescriptor getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

        Gets the first supported descriptor by its type name.

        Parameters:
        descriptorTypeName - The descriptor type name.


        The first loader descriptor will be actually the last registered.
        Returns:
        The first found loader descriptor or null if not such descriptor is found.
      • getFirstSupportedDescriptor

        public static IImageLoaderDescriptor getFirstSupportedDescriptor(InputStream stream,
                                                                         LoadOptions loadOptions)

        Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions.

        Parameters:
        stream - The stream.
        loadOptions - The load options.


        The first loader descriptor will be actually the last registered.
        Returns:
        The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found.
      • getFirstSupportedDescriptor

        public static IImageLoaderDescriptor getFirstSupportedDescriptor(InputStream stream,
                                                                         LoadOptions loadOptions,
                                                                         boolean releaseSyncStream)

        Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions.

        Parameters:
        stream - The stream.
        loadOptions - The load options.
        releaseSyncStream - The release of sync stream options.


        The first loader descriptor will be actually the last registered.
        Returns:
        The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found.
      • createFirstSupportedLoader

        public static IImageLoader createFirstSupportedLoader(InputStream stream,
                                                              LoadOptions loadOptions)

        Creates the first found loader suitable for the specified stream and optionally the loadOptions.

        Parameters:
        stream - The stream.
        loadOptions - The load options.


        The first loader will be actually the last registered.
        Returns:
        The loader which supports the specified stream and loadOptions or null if no such loader is found.
      • createFirstSupportedLoader

        public static IImageLoader createFirstSupportedLoader(InputStream stream,
                                                              LoadOptions loadOptions,
                                                              boolean releaseSyncStream)

        Creates the first found loader suitable for the specified stream and optionally the loadOptions.

        Parameters:
        stream - The stream.
        loadOptions - The load options.
        releaseSyncStream - The release of sync stream options.


        The first loader will be actually the last registered.
        Returns:
        The loader which supports the specified stream and loadOptions or null if no such loader is found.
      • registerLoader

        public static void registerLoader(IImageLoaderDescriptor loaderDescriptor)

        Registers the loader.

        Parameters:
        loaderDescriptor - The loader descriptor to register.
      • unregisterLoader

        public static void unregisterLoader(IImageLoaderDescriptor loaderDescriptor)

        Unregisters the loader.

        Parameters:
        loaderDescriptor - The loader descriptor to unregister.