public interface FileThumbnailTransformer
Modifier and Type | Method and Description |
---|---|
TransformationHandler |
getTransformationHandler(java.lang.String command)
Gets the transformation handler for the specified command
|
void |
transformFile(org.apache.sling.cms.File file,
java.lang.String[] commands,
OutputFileFormat format,
java.io.OutputStream out)
Transforms the file into a thumbnail using the specified commands.
|
void |
transformFile(org.apache.sling.api.SlingHttpServletRequest request,
java.io.OutputStream out)
Transforms the file from the resource path into a thumbnail using the
specified commands from the suffix.
|
TransformationHandler getTransformationHandler(java.lang.String command)
command
- the command string to use to look up the transformation
handler.void transformFile(org.apache.sling.cms.File file, java.lang.String[] commands, OutputFileFormat format, java.io.OutputStream out) throws java.io.IOException
commands
- the commands to executeformat
- the format of the file to returnout
- the Outputstream to write the thumbnail tojava.io.IOException
- an exception occurs transforming the filevoid transformFile(org.apache.sling.api.SlingHttpServletRequest request, java.io.OutputStream out) throws java.io.IOException
request
- the request to parse the file and commands fromout
- the Outputstream to write the thumbnail tojava.io.IOException
- an exception occurs transforming the fileCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.