com.cedarsoft.serialization.stax
Class AbstractDelegatingStaxMateSerializer<T,C>
java.lang.Object
com.cedarsoft.serialization.AbstractSerializer<T,C,S,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement>
com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<T,C>
com.cedarsoft.serialization.stax.AbstractDelegatingStaxMateSerializer<T,C>
- Type Parameters:
T - the typeC - the type of the context
- All Implemented Interfaces:
- PluggableSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>, Serializer<T,C>
public class AbstractDelegatingStaxMateSerializer<T,C>
- extends AbstractStaxMateSerializer<T,C>
|
Method Summary |
T |
deserialize(javax.xml.stream.XMLStreamReader deserializeFrom,
C context)
Deserializes the object from the given document |
java.util.Collection<? extends StaxMateSerializingStrategy<T,C>> |
getStrategies()
|
org.codehaus.staxmate.out.SMOutputElement |
serialize(org.codehaus.staxmate.out.SMOutputElement serializeTo,
T object,
C 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 |
AbstractDelegatingStaxMateSerializer
public AbstractDelegatingStaxMateSerializer(@NotNull
java.lang.String defaultElementName,
@NotNull
VersionRange formatVersionRange,
@NotNull
StaxMateSerializingStrategy<? extends T,C>... strategies)
AbstractDelegatingStaxMateSerializer
public AbstractDelegatingStaxMateSerializer(@NotNull
java.lang.String defaultElementName,
@NotNull
VersionRange formatVersionRange,
@NotNull
java.util.Collection<? extends StaxMateSerializingStrategy<? extends T,C>> strategies)
serialize
@NotNull
public org.codehaus.staxmate.out.SMOutputElement serialize(@NotNull
org.codehaus.staxmate.out.SMOutputElement serializeTo,
@NotNull
T object,
@Nullable
C context)
throws java.io.IOException
- 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
deserialize
@NotNull
public T deserialize(@NotNull
javax.xml.stream.XMLStreamReader deserializeFrom,
@Nullable
C 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
getStrategies
@NotNull
public java.util.Collection<? extends StaxMateSerializingStrategy<T,C>> getStrategies()
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.