@Component @Named(value="base") @Singleton public class BaseImageWriterImpl extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
BaseImageWriterImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getStorageLocation(String imageId)
Compute the location where to store the generated chart image.
|
String |
getURL(String imageId) |
void |
start() |
void |
stop() |
void |
writeImage(String imageId,
byte[] imageData) |
public void writeImage(String imageId, byte[] imageData) throws Exception
Exceptionprotected File getStorageLocation(String imageId) throws Exception
imageId - the image id that we use to generate a unique storage locationException - if an error happened when computing the locationpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2021 eXo Platform SAS. All rights reserved.