public final class LayerResourcesRegistry extends Object
Represents the layer resources registry.
| Constructor and Description |
|---|
LayerResourcesRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static ILayerResourceLoader |
getFirstSupportedDescriptor(InputStream stream,
int psdVersion)
Gets the first supported opener descriptor.
|
static ILayerResourceLoader |
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
|
static ILayerResourceLoader[] |
getRegisteredDescriptors()
Gets the registered descriptors.
|
static LayerResource |
loadResourceByFirstSupportedDescriptor(InputStream stream,
int psdVersion)
Loads
LayerResource using first found opener suitable for the specified stream. |
static void |
registerOpener(ILayerResourceLoader openerDescriptor)
Registers the opener.
|
static void |
unregisterOpener(ILayerResourceLoader openerDescriptor)
Unregisters the opener.
|
public static ILayerResourceLoader[] getRegisteredDescriptors()
Gets the registered descriptors.
Value: The registered descriptors.public static ILayerResourceLoader getFirstSupportedDescriptorByTypeName(String descriptorTypeName)
Gets the first supported descriptor by its type name.
descriptorTypeName - The descriptor type name.
public static ILayerResourceLoader getFirstSupportedDescriptor(InputStream stream, int psdVersion)
Gets the first supported opener descriptor.
stream - The stream.psdVersion - The PSD version.
public static LayerResource loadResourceByFirstSupportedDescriptor(InputStream stream, int psdVersion)
Loads LayerResource using first found opener suitable for the specified stream.
stream - The stream.psdVersion - The PSD version.
LayerResource or null if no opener is found.public static void registerOpener(ILayerResourceLoader openerDescriptor)
Registers the opener.
openerDescriptor - The opener descriptor to register.public static void unregisterOpener(ILayerResourceLoader openerDescriptor)
Unregisters the opener.
openerDescriptor - The opener descriptor to unregister.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.