Class StringMarshaller
java.lang.Object
org.apache.activemq.store.kahadb.disk.util.StringMarshaller
- All Implemented Interfaces:
Marshaller<String>
Implementation of a Marshaller for Strings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanreadPayload(DataInput dataIn) Read the entry from the RawContainervoidwritePayload(String object, DataOutput dataOut) Write the payload of this entry to the RawContainer
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StringMarshaller
public StringMarshaller()
-
-
Method Details
-
writePayload
Write the payload of this entry to the RawContainer- Specified by:
writePayloadin interfaceMarshaller<String>- Parameters:
object-dataOut-- Throws:
IOException
-
readPayload
Read the entry from the RawContainer- Specified by:
readPayloadin interfaceMarshaller<String>- Parameters:
dataIn-- Returns:
- unmarshalled object
- Throws:
IOException
-
getFixedSize
public int getFixedSize()- Specified by:
getFixedSizein interfaceMarshaller<String>- Returns:
- -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
-
deepCopy
- Specified by:
deepCopyin interfaceMarshaller<String>- Returns:
- a deep copy of the source object.
-
isDeepCopySupported
public boolean isDeepCopySupported()- Specified by:
isDeepCopySupportedin interfaceMarshaller<String>- Returns:
- true if the
Marshaller.deepCopy(Object)operations is supported.
-