public void serializeValue(Object value, Class<?> type) throws SerializationException { ValueWriter valueWriter = CLASS_TO_VALUE_WRITER.get(type); if (valueWriter != null) { valueWriter.write(this, value); } else { // Arrays of primitive or reference types need to go through writeObject. ValueWriter.OBJECT.write(this, value); } }
public void serializeValue(Object value, Class<?> type) throws SerializationException { ValueWriter valueWriter = CLASS_TO_VALUE_WRITER.get(type); if (valueWriter != null) { valueWriter.write(this, value); } else { // Arrays of primitive or reference types need to go through writeObject. ValueWriter.OBJECT.write(this, value); } }
public void serializeValue(Object value, Class<?> type) throws SerializationException { ValueWriter valueWriter = CLASS_TO_VALUE_WRITER.get(type); if (valueWriter != null) { valueWriter.write(this, value); } else { // Arrays of primitive or reference types need to go through writeObject. ValueWriter.OBJECT.write(this, value); } }