Class JacksonFlowSnapshotSerializer
java.lang.Object
org.apache.nifi.registry.flow.git.serialize.JacksonFlowSnapshotSerializer
- All Implemented Interfaces:
FlowSnapshotSerializer
Implementation of
FlowSnapshotSerializer
that is Jackson's ObjectMapper.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.nifi.registry.flow.RegisteredFlowSnapshot
deserialize
(InputStream inputStream) serialize
(org.apache.nifi.registry.flow.RegisteredFlowSnapshot flowSnapshot)
-
Field Details
-
OBJECT_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER
-
-
Constructor Details
-
JacksonFlowSnapshotSerializer
public JacksonFlowSnapshotSerializer()
-
-
Method Details
-
serialize
public String serialize(org.apache.nifi.registry.flow.RegisteredFlowSnapshot flowSnapshot) throws IOException - Specified by:
serialize
in interfaceFlowSnapshotSerializer
- Throws:
IOException
-
deserialize
public org.apache.nifi.registry.flow.RegisteredFlowSnapshot deserialize(InputStream inputStream) throws IOException - Specified by:
deserialize
in interfaceFlowSnapshotSerializer
- Throws:
IOException
-