com.cedarsoft.serialization
Class ZoneInfoSerializer

java.lang.Object
  extended by com.cedarsoft.serialization.ZoneInfoSerializer
All Implemented Interfaces:
Serializer<org.joda.time.DateTimeZone,Lookup>

public class ZoneInfoSerializer
extends java.lang.Object
implements Serializer<org.joda.time.DateTimeZone,Lookup>


Constructor Summary
ZoneInfoSerializer()
           
 
Method Summary
 org.joda.time.DateTimeZone deserialize(java.io.InputStream in, Lookup context)
          Deserializes the object from the input stream
 void serialize(org.joda.time.DateTimeZone object, java.io.OutputStream out, Lookup context)
          Serializes the object to the given output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneInfoSerializer

public ZoneInfoSerializer()
Method Detail

serialize

public void serialize(@NotNull
                      org.joda.time.DateTimeZone object,
                      @NotNull
                      java.io.OutputStream out,
                      @Nullable
                      Lookup context)
               throws java.io.IOException
Description copied from interface: Serializer
Serializes the object to the given output stream

Specified by:
serialize in interface Serializer<org.joda.time.DateTimeZone,Lookup>
Parameters:
object - the object
out - the out stream
context - the context (optional)
Throws:
java.io.IOException

deserialize

@NotNull
public org.joda.time.DateTimeZone deserialize(@NotNull
                                                      java.io.InputStream in,
                                                      @Nullable
                                                      Lookup context)
                                       throws java.io.IOException
Description copied from interface: Serializer
Deserializes the object from the input stream

Specified by:
deserialize in interface Serializer<org.joda.time.DateTimeZone,Lookup>
Parameters:
in - the input stream
context - the context (optional)
Returns:
the deserialized object
Throws:
java.io.IOException


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.