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 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
-
-
-
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 IOException
Description copied from interface:Transformer
Transforms the resource- Specified by:
transform
in 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
-
-