public final class JsonProvenanceSerialization extends Object implements ProvenanceSerialization
| Constructor and Description |
|---|
JsonProvenanceSerialization(boolean indentOutput)
Construct a JsonProvenanceSerialization.
|
| Modifier and Type | Method and Description |
|---|---|
List<ObjectMarshalledProvenance> |
deserializeFromFile(Path path) |
List<ObjectMarshalledProvenance> |
deserializeFromString(String input) |
String |
getFileExtension() |
void |
serializeToFile(List<ObjectMarshalledProvenance> marshalledProvenances,
Path path) |
String |
serializeToString(List<ObjectMarshalledProvenance> marshalledProvenances) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeAndUnmarshal, deserializeAndUnmarshal, marshalAndSerialize, marshalAndSerializepublic JsonProvenanceSerialization(boolean indentOutput)
indentOutput - Indent the output.public String getFileExtension()
getFileExtension in interface ProvenanceSerializationpublic List<ObjectMarshalledProvenance> deserializeFromFile(Path path) throws ProvenanceSerializationException, IOException
deserializeFromFile in interface ProvenanceSerializationProvenanceSerializationExceptionIOExceptionpublic List<ObjectMarshalledProvenance> deserializeFromString(String input) throws ProvenanceSerializationException
deserializeFromString in interface ProvenanceSerializationProvenanceSerializationExceptionpublic String serializeToString(List<ObjectMarshalledProvenance> marshalledProvenances)
serializeToString in interface ProvenanceSerializationpublic void serializeToFile(List<ObjectMarshalledProvenance> marshalledProvenances, Path path) throws IOException
serializeToFile in interface ProvenanceSerializationIOExceptionCopyright © 2022. All rights reserved.