LayerResourcesRegistry

Inheritance: java.lang.Object

public final class LayerResourcesRegistry

Represents the layer resources registry.

Constructors

ConstructorDescription
LayerResourcesRegistry()

Methods

MethodDescription
equals(Object arg0)
getClass()
getFirstSupportedDescriptor(InputStream stream, int psdVersion)Gets the first supported opener descriptor.
getFirstSupportedDescriptorByTypeName(String descriptorTypeName)Gets the first supported descriptor by its type name.
getFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)
getRegisteredDescriptors()Gets the registered descriptors.
hashCode()
loadResourceByFirstSupportedDescriptor(InputStream stream, int psdVersion)Loads LayerResource using first found opener suitable for the specified stream .
loadResourceByFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)
notify()
notifyAll()
registerDefaultPsdOptions_internalized()Registers the default PSD options.
registerOpener(ILayerResourceLoader openerDescriptor)Registers the opener.
registerPsdLoadOptions_internalized(PsdLoadOptions load)Registers the PSD load options.
toString()
unregisterOpener(ILayerResourceLoader openerDescriptor)Unregisters the opener.
wait()
wait(long arg0)
wait(long arg0, int arg1)

LayerResourcesRegistry()

public LayerResourcesRegistry()

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, int psdVersion)

public static ILayerResourceLoader getFirstSupportedDescriptor(InputStream stream, int psdVersion)

Gets the first supported opener descriptor.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
psdVersionintThe PSD version.

The first loader will be actually the last registered. |

Returns: ILayerResourceLoader - The layer resource loader descriptor or null if no loader descriptor supported for such stream.

getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

public static ILayerResourceLoader getFirstSupportedDescriptorByTypeName(String descriptorTypeName)

Gets the first supported descriptor by its type name.

Parameters:

ParameterTypeDescription
descriptorTypeNamejava.lang.StringThe descriptor type name.

The first opener descriptor will be actually the last registered. |

Returns: ILayerResourceLoader - The first found opener descriptor or null if not such descriptor is found.

getFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)

public static ILayerResourceLoader getFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)

Parameters:

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

Returns: ILayerResourceLoader

getRegisteredDescriptors()

public static ILayerResourceLoader[] getRegisteredDescriptors()

Gets the registered descriptors.

Value: The registered descriptors.

Returns: com.aspose.psd.fileformats.psd.layers.ILayerResourceLoader[]

hashCode()

public native int hashCode()

Returns: int

loadResourceByFirstSupportedDescriptor(InputStream stream, int psdVersion)

public static LayerResource loadResourceByFirstSupportedDescriptor(InputStream stream, int psdVersion)

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

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
psdVersionintThe PSD version.

The first opener will be actually the last registered. |

Returns: LayerResource - The loaded LayerResource or null if no opener is found.

loadResourceByFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)

public static LayerResource loadResourceByFirstSupportedDescriptor_internalized(System.IO.Stream stream, int psdVersion)

Parameters:

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

Returns: LayerResource

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

registerDefaultPsdOptions_internalized()

public static void registerDefaultPsdOptions_internalized()

Registers the default PSD options.

registerOpener(ILayerResourceLoader openerDescriptor)

public static void registerOpener(ILayerResourceLoader openerDescriptor)

Registers the opener.

Parameters:

ParameterTypeDescription
openerDescriptorILayerResourceLoaderThe opener descriptor to register.

registerPsdLoadOptions_internalized(PsdLoadOptions load)

public static void registerPsdLoadOptions_internalized(PsdLoadOptions load)

Registers the PSD load options.

Parameters:

ParameterTypeDescription
loadPsdLoadOptionsThe load.

toString()

public String toString()

Returns: java.lang.String

unregisterOpener(ILayerResourceLoader openerDescriptor)

public static void unregisterOpener(ILayerResourceLoader openerDescriptor)

Unregisters the opener.

Parameters:

ParameterTypeDescription
openerDescriptorILayerResourceLoaderThe opener 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