@Component @Named(value="tmp") @Singleton public class ImageWriterImpl extends BaseImageWriterImpl implements org.xwiki.rendering.internal.macro.chart.ChartImageWriter
| Constructor and Description |
|---|
ImageWriterImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getStorageLocation(org.xwiki.rendering.internal.macro.chart.ImageId imageId)
Compute the location where to store the generated chart image.
|
String |
getURL(org.xwiki.rendering.internal.macro.chart.ImageId imageId) |
void |
writeImage(org.xwiki.rendering.internal.macro.chart.ImageId imageId,
byte[] imageData) |
getStorageLocation, getURL, start, stop, writeImagepublic void writeImage(org.xwiki.rendering.internal.macro.chart.ImageId imageId,
byte[] imageData)
throws org.xwiki.rendering.macro.MacroExecutionException
writeImage in interface org.xwiki.rendering.internal.macro.chart.ChartImageWriterorg.xwiki.rendering.macro.MacroExecutionExceptionprotected File getStorageLocation(org.xwiki.rendering.internal.macro.chart.ImageId imageId) throws org.xwiki.rendering.macro.MacroExecutionException
imageId - the image id that we use to generate a unique storage locationorg.xwiki.rendering.macro.MacroExecutionException - if an error happened when computing the locationpublic String getURL(org.xwiki.rendering.internal.macro.chart.ImageId imageId) throws org.xwiki.rendering.macro.MacroExecutionException
getURL in interface org.xwiki.rendering.internal.macro.chart.ChartImageWriterorg.xwiki.rendering.macro.MacroExecutionExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.