Packages

 

com.aspose.psd.fileformats.psd.layers.layerresources

Class OSTypeStructuresRegistry

  • java.lang.Object
    • com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructuresRegistry


  • public final class OSTypeStructuresRegistry
    extends Object

    Represents the OSTypeStructure resources registry.

    • Constructor Detail

      • OSTypeStructuresRegistry

        public OSTypeStructuresRegistry()
    • Method Detail

      • getRegisteredDescriptors

        public static IOSTypeStructureLoader[] getRegisteredDescriptors()

        Gets the registered descriptors.

        Value: The registered descriptors.
      • getFirstSupportedDescriptorByTypeName

        public static IOSTypeStructureLoader getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

        Gets the first supported descriptor by its type name.

        Parameters:
        descriptorTypeName - The descriptor type name.


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

        public static IOSTypeStructureLoader getFirstSupportedDescriptor(InputStream stream)

        Gets the first supported opener descriptor.

        Parameters:
        stream - The stream.


        The first loader will be actually the last registered.
        Returns:
        The layer resource loader descriptor or null if no loader descriptor supported for such stream.
      • loadResourceByFirstSupportedDescriptor

        public static OSTypeStructure loadResourceByFirstSupportedDescriptor(InputStream stream)

        Loads OSTypeStructure using first found opener suitable for the specified stream.

        Parameters:
        stream - The stream.


        The first opener will be actually the last registered.
        Returns:
        The loaded LayerResource or null if no opener is found.
      • registerOpener

        public static void registerOpener(IOSTypeStructureLoader openerDescriptor)

        Registers the opener.

        Parameters:
        openerDescriptor - The opener descriptor to register.
      • unregisterOpener

        public static void unregisterOpener(IOSTypeStructureLoader openerDescriptor)

        Unregisters the opener.

        Parameters:
        openerDescriptor - The opener descriptor to unregister.