public class JsonArtifactAstDeserializer extends Object implements InternalArtifactAstDeserializer
InternalArtifactAstDeserializer. This deserializer assumes the InputStream has no
header as it should have been consumed by the
DefaultArtifactAstDeserializer in order to decide to dispatch it here.| Constructor and Description |
|---|
JsonArtifactAstDeserializer(com.google.gson.GsonBuilder gsonBuilder,
boolean populateGenerationInformation)
This constructor allows a
GsonBuilder parameter. |
| Modifier and Type | Method and Description |
|---|---|
ArtifactAst |
deserialize(InputStream artifactAstInputStream,
String version,
Charset charset,
ExtensionModelResolver extensionModelResolver,
ArtifactAst parent)
This method takes an input stream of a serialized
ArtifactAst with no metadata header and deserializes and enriches
it. |
String |
getLatestVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, deserializepublic static final String V_1_0
public JsonArtifactAstDeserializer(com.google.gson.GsonBuilder gsonBuilder,
boolean populateGenerationInformation)
GsonBuilder parameter.gsonBuilder - public String getLatestVersion()
getLatestVersion in interface InternalArtifactAstDeserializerpublic ArtifactAst deserialize(InputStream artifactAstInputStream, String version, Charset charset, ExtensionModelResolver extensionModelResolver, ArtifactAst parent) throws IllegalArgumentException, IOException
ArtifactAst with no metadata header and deserializes and enriches
it.deserialize in interface InternalArtifactAstDeserializerartifactAstInputStream - the input stream generated by an ArtifactAstSerializer. Max allowed size =
bytesversion - extensionModelResolver - an instance of ExtensionModelResolverArtifactAstIllegalArgumentExceptionIOExceptionCopyright © 2022 MuleSoft, Inc.. All rights reserved.