|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.dam.commons.handler.SimpleContext
public class SimpleContext
Simple context that remembers all metadata and thumbnail images found.
| Constructor Summary | |
|---|---|
SimpleContext()
|
|
| Method Summary | |
|---|---|
void |
addException(ProcessorException e)
Add an exception that occurred while processing an asset. |
void |
addMetadata(InputStream meta)
Add metadata. |
void |
addThumbnail(BufferedImage image)
Add thumbnail image. |
ProcessorException[] |
getExceptions()
Return all exceptions found during processing. |
InputStream[] |
getMetadata()
Return all metadata found, as an array. |
BufferedImage[] |
getThumbnails()
Return all images found, as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleContext()
| Method Detail |
|---|
public InputStream[] getMetadata()
nullpublic BufferedImage[] getThumbnails()
nullpublic ProcessorException[] getExceptions()
nullpublic void addException(ProcessorException e)
addException in interface Contexte - exception to addpublic void addMetadata(InputStream meta)
addMetadata in interface Contextmeta - metadatapublic void addThumbnail(BufferedImage image)
addThumbnail in interface Contextimage - buffered image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||