Class ByteArrayValueSerializer
- java.lang.Object
-
- org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer<T>
-
- org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer<BytesValue>
-
- org.camunda.bpm.engine.impl.variable.serializer.ByteArrayValueSerializer
-
- All Implemented Interfaces:
TypedValueSerializer<BytesValue>
public class ByteArrayValueSerializer extends PrimitiveValueSerializer<BytesValue>
- Author:
- Tom Baeyens, Daniel Meyer
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
BINARY_VALUE_TYPES, valueType
-
-
Constructor Summary
Constructors Constructor Description ByteArrayValueSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canWriteValue(TypedValue typedValue)
BytesValue
convertToTypedValue(UntypedValueImpl untypedValue)
Returns a typed value for the provided untyped value.BytesValue
readValue(ValueFields valueFields, boolean asTransientValue)
void
writeValue(BytesValue variableValue, ValueFields valueFields)
Serialize aTypedValue
to theValueFields
.-
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.PrimitiveValueSerializer
getName, getType, readValue
-
Methods inherited from class org.camunda.bpm.engine.impl.variable.serializer.AbstractTypedValueSerializer
canHandle, getSerializationDataformat, isMutableValue
-
-
-
-
Method Detail
-
convertToTypedValue
public BytesValue convertToTypedValue(UntypedValueImpl untypedValue)
Description copied from interface:TypedValueSerializer
Returns a typed value for the provided untyped value. This is used on cases where the user sets an untyped value which is then detected to be handled by thisTypedValueSerializer
(by invocation ofTypedValueSerializer.canHandle(TypedValue)
).- Parameters:
untypedValue
- the untyped value- Returns:
- the corresponding typed value
-
readValue
public BytesValue readValue(ValueFields valueFields, boolean asTransientValue)
- Specified by:
readValue
in classPrimitiveValueSerializer<BytesValue>
-
writeValue
public void writeValue(BytesValue variableValue, ValueFields valueFields)
Description copied from interface:TypedValueSerializer
Serialize aTypedValue
to theValueFields
.- Parameters:
variableValue
- theTypedValue
to persistvalueFields
- theValueFields
to which the value should be persisted
-
canWriteValue
protected boolean canWriteValue(TypedValue typedValue)
- Overrides:
canWriteValue
in classPrimitiveValueSerializer<BytesValue>
-
-