Package org.apache.sling.cms.transformer
Interface Transformer
-
- All Known Implementing Classes:
TransformerImpl
public interface Transformer
Transforms a resource using the registered TransformationHandlers to invoke transformations on the file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
transform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out)
Transforms the resource
-
-
-
Method Detail
-
transform
void transform(org.apache.sling.api.resource.Resource resource, Transformation transformation, OutputFileFormat format, OutputStream out) throws IOException
Transforms the resource- 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
-
-