Class TransformerImpl
- java.lang.Object
-
- org.apache.sling.cms.transformer.internal.TransformerImpl
-
- All Implemented Interfaces:
Transformer
public class TransformerImpl extends Object implements Transformer
-
-
Constructor Summary
Constructors Constructor Description TransformerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddThumbnailProvider(ThumbnailProvider thumbnailProvider)voidaddTransformationHandler(TransformationHandler handler)List<TransformationHandler>getHandlers()List<ThumbnailProvider>getThumbnailProviders()TransformationHandlergetTransformationHandler(String resourceType)voidtransform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out)Transforms the resource
-
-
-
Method Detail
-
addThumbnailProvider
public void addThumbnailProvider(ThumbnailProvider thumbnailProvider)
-
addTransformationHandler
public void addTransformationHandler(TransformationHandler handler)
-
getHandlers
public List<TransformationHandler> getHandlers()
-
getThumbnailProviders
public List<ThumbnailProvider> getThumbnailProviders()
- Returns:
- the thumbnailProviders
-
getTransformationHandler
public TransformationHandler getTransformationHandler(String resourceType)
-
transform
public void transform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out) throws IOExceptionDescription copied from interface:TransformerTransforms the resource- Specified by:
transformin interfaceTransformer- Parameters:
resource- the resource to transformtransformation- the transformation to executeformat- the format of the stream to returnout- the OutputStream to which to write the transformed file- Throws:
IOException- an exception occurs transforming the resource
-
-