public class PolicyDefinitionSerializer extends Object
| Constructor and Description |
|---|
PolicyDefinitionSerializer() |
| Modifier and Type | Method and Description |
|---|---|
PolicyDefinition |
deserializeFromFile(File file)
Deserializes the JSON stored in a file into a
PolicyDefinition. |
OfflinePolicyDefinition |
deserializeOfflineFromFile(File file)
Deserializes the JSON stored in a file into an
OfflinePolicyDefinition. |
void |
serializeToFile(PolicyDefinition policyDefinition,
File destFile)
Serializes a policy definition to JSON format and stores the output in a file
|
public void serializeToFile(PolicyDefinition policyDefinition, File destFile) throws IOException
policyDefinition - the definition to serializedestFile - the file where to store the JSONIOExceptionpublic PolicyDefinition deserializeFromFile(File file) throws IOException
PolicyDefinition.file - the file where to read the JSONIOExceptionpublic OfflinePolicyDefinition deserializeOfflineFromFile(File file)
OfflinePolicyDefinition.file - the file where to read the JSONCopyright © 2014–2022 MuleSoft, Inc.. All rights reserved.