Package org.apache.nifi.c2.serializer
Interface C2Serializer
- All Known Implementing Classes:
C2JacksonSerializer
public interface C2Serializer
Helper class to support central configuration and functionality for serialisation / deserialisation
-
Method Details
-
serialize
Helper to serialise object- Type Parameters:
T- the type of the object- Parameters:
content- object to be serialised- Returns:
- the serialised string representation of the parameter object if it was successful empty otherwise
-
deserialize
Helper to deserialize an object- Type Parameters:
T- the type of the target object- Parameters:
content- the string representation of the object to be deserializedvalueType- the class of the target object- Returns:
- the deserialised object if successful empty otherwise
-
convert
Helper to convert a JSON object into a specific type- Type Parameters:
T- the type of the target object- Parameters:
content- the string representation of the object to be deserializedvalueType- the class of the target object- Returns:
- the converted object if the conversion was successful empty otherwise
-