com.cedarsoft.utils.crypt
Class HashSerializer

java.lang.Object
  extended by com.cedarsoft.serialization.AbstractSerializer<T,C,S,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>
      extended by com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer<T,C,org.codehaus.staxmate.out.SMOutputElement>
          extended by com.cedarsoft.serialization.stax.AbstractStaxMateSerializer<Hash,java.lang.Object>
              extended by com.cedarsoft.utils.crypt.HashSerializer
All Implemented Interfaces:
PluggableSerializer<Hash,java.lang.Object,org.codehaus.staxmate.out.SMOutputElement,javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamException>, Serializer<Hash,java.lang.Object>

public class HashSerializer
extends AbstractStaxMateSerializer<Hash,java.lang.Object>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer
AbstractStaxBasedSerializer.CB
 
Field Summary
 
Fields inherited from interface com.cedarsoft.serialization.Serializer
PI_TARGET_FORMAT
 
Constructor Summary
HashSerializer()
           
 
Method Summary
 Hash deserialize(javax.xml.stream.XMLStreamReader deserializeFrom, java.lang.Object context)
           
 org.codehaus.staxmate.out.SMOutputElement serialize(org.codehaus.staxmate.out.SMOutputElement serializeTo, Hash object, java.lang.Object context)
           
 
Methods inherited from class com.cedarsoft.serialization.stax.AbstractStaxMateSerializer
serialize, serializeFormatVersion
 
Methods inherited from class com.cedarsoft.serialization.stax.AbstractStaxBasedSerializer
closeTag, deserialize, ensureTag, getChildText, getProcessingInstructionData, getText, nextTag, visitChildren
 
Methods inherited from class com.cedarsoft.serialization.AbstractSerializer
deserialize, getDefaultElementName, getFormatVersion, getFormatVersionRange, serialize, serializeToByteArray, verifyDelegatingSerializerVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSerializer

public HashSerializer()
Method Detail

serialize

@NotNull
public org.codehaus.staxmate.out.SMOutputElement serialize(@NotNull
                                                                   org.codehaus.staxmate.out.SMOutputElement serializeTo,
                                                                   @NotNull
                                                                   Hash object,
                                                                   @Nullable
                                                                   java.lang.Object context)
                                                    throws java.io.IOException,
                                                           javax.xml.stream.XMLStreamException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

deserialize

@NotNull
public Hash deserialize(@NotNull
                                javax.xml.stream.XMLStreamReader deserializeFrom,
                                @Nullable
                                java.lang.Object context)
                 throws java.io.IOException,
                        javax.xml.stream.XMLStreamException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.