public class JsonArtifactAstSerializer extends Object implements ArtifactAstSerializer
ArtifactAstSerializer that uses Gson to generate a Json String as the body of the
serialized representation| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZER_VERSION |
| Constructor and Description |
|---|
JsonArtifactAstSerializer(Executor executor)
This is the constructor recommended for production
|
| Modifier and Type | Method and Description |
|---|---|
Executor |
getExecutor() |
InputStream |
serialize(ArtifactAst artifactAst)
Serializes an
ArtifactAst into an InputStream adding string metadata in the first line followed by the
serialized content. |
public static final String SERIALIZER_VERSION
public JsonArtifactAstSerializer(Executor executor)
public InputStream serialize(ArtifactAst artifactAst)
ArtifactAstSerializerArtifactAst into an InputStream adding string metadata in the first line followed by the
serialized content.serialize in interface ArtifactAstSerializerartifactAst - The AST of the artifact to be serializedInputStream containing a first line with metadata (a String with serializer id and version delimited by
the character '#') followed by the serialized content.public Executor getExecutor()
Copyright © 2022 MuleSoft, Inc.. All rights reserved.