Package com.im.df.impl.xml
Class ImagePersister
- java.lang.Object
-
- com.im.df.api.util.xml.BasicPersister<Image>
-
- com.im.df.impl.xml.ImagePersister
-
- All Implemented Interfaces:
com.im.df.api.util.xml.BasicPersisterInit,com.im.df.api.util.xml.IJCPersister,com.im.df.api.util.xml.IJCPersister.Reader,com.im.df.api.util.xml.IJCPersister.Writer,Cloneable
public class ImagePersister extends com.im.df.api.util.xml.BasicPersister<Image>
Persists ajava.awt.Imageobject. COnverts image into PNG format and writes hexadecimal representation of output as a text data of a resulting element.- Author:
- radim
-
-
Constructor Summary
Constructors Constructor Description ImagePersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanInstantiate(Class valueClazz)protected ObjectreadElement(Object prototype)protected voidwriteElement()-
Methods inherited from class com.im.df.api.util.xml.BasicPersister
addError, clearErrors, create, createAttribute, createElement, createInstance, createInstance, createLog, createReader, createState, createWriter, defaultReadBean, defaultWriteBean, enterElement, enterElement, getAttribute, getAttribute, getBean, getBeanClass, getBufferedErrors, getClass, getConfiguredQName, getContext, getCurrentClassLoader, getEnv, getNode, getPersisterRegistry, getPropertyValue, getQName, getStorage, getType, init, isPrimitive, leaveElement, loadObject, popElement, pushElement, read, readAttr, readAttr, readAttr, readAttribute, readBeanProperties, readBeanProperty, readCollection, readCollection, readCollection, readCollectionProperty, readMap, readMapProperty, readObjectPolymorphic, readObjectStatic, readPrimitiveProperty, setBean, setBeanClass, setClassBeanInfo, setContext, setEnv, setNode, setPersisterRegistry, setPropertyAttributes, setQName, setStorage, storeObject, throwWrappedIOException, throwWrappedIOException, write, write, write, writeArray, writeAttr, writeAttr, writeAttr, writeAttr, writeAttr, writeAttribute, writeCollection, writeCollection, writeCollection, writeMap, writeMap, writeObject, writeObjectPolymorphic, writeObjectStatic, writeProperty, writeSuperclass
-
-
-
-
Method Detail
-
canInstantiate
protected boolean canInstantiate(Class valueClazz)
- Overrides:
canInstantiatein classcom.im.df.api.util.xml.BasicPersister<Image>
-
readElement
protected Object readElement(Object prototype) throws IOException
- Overrides:
readElementin classcom.im.df.api.util.xml.BasicPersister<Image>- Throws:
IOException
-
writeElement
protected void writeElement() throws IOException- Overrides:
writeElementin classcom.im.df.api.util.xml.BasicPersister<Image>- Throws:
IOException
-
-