ILayerResourceLoader

public interface ILayerResourceLoader

The layer resource loader.

Methods

MethodDescription
canLoad(StreamContainer streamContainer, int psdVersion)Determines whether layer resource can be loaded from the specified StreamContainer .
load(StreamContainer streamContainer, int psdVersion)Loads the LayerResource.

canLoad(StreamContainer streamContainer, int psdVersion)

public abstract boolean canLoad(StreamContainer streamContainer, int psdVersion)

Determines whether layer resource can be loaded from the specified StreamContainer .

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
psdVersionintThe PSD version.

Returns: boolean - true if layer resource can be loaded from the specified StreamContainer ; otherwise, false .

load(StreamContainer streamContainer, int psdVersion)

public abstract LayerResource load(StreamContainer streamContainer, int psdVersion)

Loads the LayerResource.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to load from.
psdVersionintThe PSD version.

Returns: LayerResource - The loaded resource.