public class PreviewImageProcessor extends Object
| Constructor and Description | 
|---|
PreviewImageProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
findImage(ImageRequestParameter params)
Finds the appropriate preview image for the given image request parameters. 
 | 
static void | 
writeDefaultImage(javax.servlet.http.HttpServletResponse resp,
                 ImageRequestParameter params)
Writes the default preview image to the response. 
 | 
static void | 
writeImage(javax.servlet.http.HttpServletResponse resp,
          ImageRequestParameter params,
          byte[] scrFile)
Writes the given image to the response. 
 | 
public static byte[] findImage(ImageRequestParameter params)
params - Parameters for the image request.public static void writeImage(javax.servlet.http.HttpServletResponse resp,
                              ImageRequestParameter params,
                              byte[] scrFile)
                       throws IOException
ImageRequestParameters.resp - Response to write to.params - Parameters for the image request.scrFile - Source file with the image data.IOException - on errors while writing the image to re responsepublic static void writeDefaultImage(javax.servlet.http.HttpServletResponse resp,
                                     ImageRequestParameter params)
                              throws IOException
ImageRequestParameters.resp - Response to write to.params - Parameters for the image request.IOException - on errors while writing the image to re responseCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.