org.apache.kahadb.util
Class LocationMarshaller
java.lang.Object
org.apache.kahadb.util.LocationMarshaller
- All Implemented Interfaces:
- Marshaller<Location>
public class LocationMarshaller
- extends java.lang.Object
- implements Marshaller<Location>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final LocationMarshaller INSTANCE
LocationMarshaller
public LocationMarshaller()
readPayload
public Location readPayload(java.io.DataInput dataIn)
throws java.io.IOException
- Description copied from interface:
Marshaller
- Read the payload of the object from the DataInput stream.
- Specified by:
readPayload
in interface Marshaller<Location>
- Returns:
- unmarshalled object
- Throws:
java.io.IOException
writePayload
public void writePayload(Location object,
java.io.DataOutput dataOut)
throws java.io.IOException
- Description copied from interface:
Marshaller
- Write the payload of the object to the DataOutput stream.
- Specified by:
writePayload
in interface Marshaller<Location>
- Throws:
java.io.IOException
getFixedSize
public int getFixedSize()
- Specified by:
getFixedSize
in interface Marshaller<Location>
- Returns:
- -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
deepCopy
public Location deepCopy(Location source)
- Specified by:
deepCopy
in interface Marshaller<Location>
- Returns:
- a deep copy of the source object.
isDeepCopySupported
public boolean isDeepCopySupported()
- Specified by:
isDeepCopySupported
in interface Marshaller<Location>
- Returns:
- true if the
Marshaller.deepCopy(Object)
operations is supported.
Copyright © 2005-2016. All Rights Reserved.