com.cedarsoft.serialization
Class ZoneInfoSerializer
java.lang.Object
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>
|
Method Summary |
org.joda.time.DateTimeZone |
deserialize(java.io.InputStream in,
Lookup context)
Deserializes the object from the input stream |
Version |
getFormatVersion()
Returns the format version that is written |
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 |
ZoneInfoSerializer
public ZoneInfoSerializer()
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 objectout - the out streamcontext - 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 streamcontext - the context (optional)
- Returns:
- the deserialized object
- Throws:
java.io.IOException
getFormatVersion
@NotNull
public Version getFormatVersion()
- Description copied from interface:
Serializer
- Returns the format version that is written
- Specified by:
getFormatVersion in interface Serializer<org.joda.time.DateTimeZone,Lookup>
- Returns:
- the format version that is written
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.