public class EnumSerializer extends org.apache.geode.DataSerializer implements Serializable
addEnum(Class)
.Serializable
,
DataSerializer
,
Serialized FormConstructor and Description |
---|
EnumSerializer() |
Modifier and Type | Method and Description |
---|---|
Class<?> |
addEnum(Class<?> enumType) |
Object |
fromData(DataInput in) |
int |
getId() |
Class<?>[] |
getSupportedClasses() |
void |
setId(int id)
Sets the id of this serializer.
|
boolean |
toData(Object obj,
DataOutput out) |
equals, getContext, getEventId, hashCode, readArrayList, readArrayOfByteArrays, readBoolean, readBooleanArray, readByte, readByteArray, readCharacter, readCharArray, readClass, readConcurrentHashMap, readDate, readDouble, readDoubleArray, readEnum, readFile, readFloat, readFloatArray, readHashMap, readHashSet, readHashtable, readIdentityHashMap, readInetAddress, readIntArray, readInteger, readLinkedHashMap, readLinkedHashSet, readLinkedList, readLong, readLongArray, readNonPrimitiveClassName, readObject, readObjectArray, readPrimitiveBoolean, readPrimitiveByte, readPrimitiveChar, readPrimitiveDouble, readPrimitiveFloat, readPrimitiveInt, readPrimitiveLong, readPrimitiveShort, readProperties, readRegion, readShort, readShortArray, readStack, readString, readStringArray, readTreeMap, readTreeSet, readUnsignedByte, readUnsignedShort, readVector, register, setContext, setEventId, writeArrayList, writeArrayOfByteArrays, writeBoolean, writeBooleanArray, writeByte, writeByteArray, writeByteArray, writeCharacter, writeCharArray, writeClass, writeConcurrentHashMap, writeDate, writeDouble, writeDoubleArray, writeEnum, writeFile, writeFloat, writeFloatArray, writeHashMap, writeHashSet, writeHashtable, writeIdentityHashMap, writeInetAddress, writeIntArray, writeInteger, writeLinkedHashMap, writeLinkedHashSet, writeLinkedList, writeLong, writeLongArray, writeNonPrimitiveClassName, writeObject, writeObject, writeObjectArray, writeObjectAsByteArray, writePrimitiveBoolean, writePrimitiveByte, writePrimitiveChar, writePrimitiveDouble, writePrimitiveFloat, writePrimitiveInt, writePrimitiveLong, writePrimitiveShort, writeProperties, writeRegion, writeShort, writeShortArray, writeStack, writeString, writeStringArray, writeTreeMap, writeTreeSet, writeUnsignedByte, writeUnsignedShort, writeVector
public boolean toData(Object obj, DataOutput out) throws IOException
toData
in class org.apache.geode.DataSerializer
IOException
public Object fromData(DataInput in) throws IOException, ClassNotFoundException
fromData
in class org.apache.geode.DataSerializer
IOException
ClassNotFoundException
public void setId(int id)
id
- identifier to set on this serializer.public int getId()
getId
in class org.apache.geode.DataSerializer
public Class<?>[] getSupportedClasses()
getSupportedClasses
in class org.apache.geode.DataSerializer
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.