com.cedarsoft.serialization
Class DimensionSerializer
java.lang.Object
com.cedarsoft.serialization.AbstractSerializer<T,org.codehaus.staxmate.out.SMOutputElement,org.codehaus.stax2.XMLStreamReader2,javax.xml.stream.XMLStreamException>
com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<java.awt.Dimension>
com.cedarsoft.serialization.DimensionSerializer
- All Implemented Interfaces:
- ExtendedSerializer<java.awt.Dimension>, PluggableSerializer<java.awt.Dimension,org.codehaus.staxmate.out.SMOutputElement,org.codehaus.stax2.XMLStreamReader2,javax.xml.stream.XMLStreamException>, Serializer<java.awt.Dimension,Lookup>
public class DimensionSerializer
- extends AbstractStaxMateSerializer<java.awt.Dimension>
|
Field Summary |
static java.lang.String |
SEPARATOR
|
|
Method Summary |
java.awt.Dimension |
deserialize(org.codehaus.stax2.XMLStreamReader2 deserializeFrom,
Lookup context)
Deserializes the object from the given document |
org.codehaus.staxmate.out.SMOutputElement |
serialize(org.codehaus.staxmate.out.SMOutputElement serializeTo,
java.awt.Dimension object,
Lookup context)
Serializes the object to the given element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPARATOR
@NotNull
@NonNls
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
DimensionSerializer
public DimensionSerializer()
serialize
@NotNull
public org.codehaus.staxmate.out.SMOutputElement serialize(@NotNull
org.codehaus.staxmate.out.SMOutputElement serializeTo,
@NotNull
java.awt.Dimension object,
@NotNull
Lookup context)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
- Description copied from interface:
PluggableSerializer
- Serializes the object to the given element
- Parameters:
serializeTo - the serializeToobject - the objectcontext - the context
- Returns:
- the serializeTo (for fluent writing)
- Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
deserialize
@NotNull
public java.awt.Dimension deserialize(@NotNull
org.codehaus.stax2.XMLStreamReader2 deserializeFrom,
@NotNull
Lookup context)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
- Description copied from interface:
PluggableSerializer
- Deserializes the object from the given document
- Parameters:
deserializeFrom - the deserializeFromcontext - the context
- Returns:
- the deserialized object
- Throws:
java.io.IOException
javax.xml.stream.XMLStreamException
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.