Class LocationMarshaller
- java.lang.Object
-
- org.apache.activemq.store.kahadb.disk.util.LocationMarshaller
-
- All Implemented Interfaces:
Marshaller<Location>
public class LocationMarshaller extends Object implements Marshaller<Location>
-
-
Field Summary
Fields Modifier and Type Field Description static LocationMarshallerINSTANCE
-
Constructor Summary
Constructors Constructor Description LocationMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationdeepCopy(Location source)intgetFixedSize()booleanisDeepCopySupported()LocationreadPayload(DataInput dataIn)Read the payload of the object from the DataInput stream.voidwritePayload(Location object, DataOutput dataOut)Write the payload of the object to the DataOutput stream.
-
-
-
Field Detail
-
INSTANCE
public static final LocationMarshaller INSTANCE
-
-
Method Detail
-
readPayload
public Location readPayload(DataInput dataIn) throws IOException
Description copied from interface:MarshallerRead the payload of the object from the DataInput stream.- Specified by:
readPayloadin interfaceMarshaller<Location>- Returns:
- unmarshalled object
- Throws:
IOException
-
writePayload
public void writePayload(Location object, DataOutput dataOut) throws IOException
Description copied from interface:MarshallerWrite the payload of the object to the DataOutput stream.- Specified by:
writePayloadin interfaceMarshaller<Location>- Throws:
IOException
-
getFixedSize
public int getFixedSize()
- Specified by:
getFixedSizein interfaceMarshaller<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:
deepCopyin interfaceMarshaller<Location>- Returns:
- a deep copy of the source object.
-
isDeepCopySupported
public boolean isDeepCopySupported()
- Specified by:
isDeepCopySupportedin interfaceMarshaller<Location>- Returns:
- true if the
Marshaller.deepCopy(Object)operations is supported.
-
-