public class TransformerImpl extends Object implements Transformer
| Constructor and Description |
|---|
TransformerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addThumbnailProvider(ThumbnailProvider thumbnailProvider) |
void |
addTransformationHandler(TransformationHandler handler) |
List<TransformationHandler> |
getHandlers() |
List<ThumbnailProvider> |
getThumbnailProviders() |
TransformationHandler |
getTransformationHandler(String resourceType) |
void |
transform(org.apache.sling.api.resource.Resource resource,
Transformation transformation,
OutputFileFormat format,
OutputStream out)
Transforms the resource
|
public void addThumbnailProvider(ThumbnailProvider thumbnailProvider)
public void addTransformationHandler(TransformationHandler handler)
public List<TransformationHandler> getHandlers()
public List<ThumbnailProvider> getThumbnailProviders()
public TransformationHandler getTransformationHandler(String resourceType)
public void transform(org.apache.sling.api.resource.Resource resource,
Transformation transformation,
OutputFileFormat format,
OutputStream out)
throws IOException
Transformertransform in interface Transformerresource - the resource to transformtransformation - the transformation to executeformat - the format of the stream to returnout - the OutputStream to which to write the transformed fileIOException - an exception occurs transforming the resourceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.