public final class DefaultArtifactAstDeserializer extends Object implements ArtifactAstDeserializer
InputStream that was generated by an ArtifactAstSerializer and with that
it delegates the deserialization to the correct implementation of an ArtifactAstDeserializer| Constructor and Description |
|---|
DefaultArtifactAstDeserializer(boolean populateGenerationInformation) |
| Modifier and Type | Method and Description |
|---|---|
ArtifactAst |
deserialize(InputStream artifactAstInputStream,
ExtensionModelResolver extensionModelResolver)
Given an
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and the
associated ExtensionModels, this method deserializes it. |
ArtifactAst |
deserialize(InputStream artifactAstInputStream,
ExtensionModelResolver extensionModelResolver,
ArtifactAst parent)
Given an
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and the
associated ExtensionModels, this method deserializes it. |
public DefaultArtifactAstDeserializer(boolean populateGenerationInformation)
public ArtifactAst deserialize(InputStream artifactAstInputStream, ExtensionModelResolver extensionModelResolver) throws IllegalArgumentException, IOException
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and the
associated ExtensionModels, this method deserializes it.
This method reads the metadata to determine the format in order to apply the corresponding implementation of
ArtifactAstDeserializer.
deserialize in interface ArtifactAstDeserializerartifactAstInputStream - the input stream generated by an
ArtifactAstSerializerextensionModelResolver - an ExtensionModelResolver instanceIllegalArgumentException - if this deserializer cannot deserialize this input streamIOException - if the input stream could not be readpublic ArtifactAst deserialize(InputStream artifactAstInputStream, ExtensionModelResolver extensionModelResolver, ArtifactAst parent) throws IllegalArgumentException, IOException
InputStream created by serializing an ArtifactAst with an ArtifactAstSerializer and the
associated ExtensionModels, this method deserializes it.
This method reads the metadata to determine the format in order to apply the corresponding implementation of
ArtifactAstDeserializer.
deserialize in interface ArtifactAstDeserializerartifactAstInputStream - the input stream generated by an
ArtifactAstSerializerextensionModelResolver - an ExtensionModelResolver instanceparent - an ArtifactAst to be set as the parent of the resulting deserialized
ArtifactAstIllegalArgumentException - if this deserializer cannot deserialize this input streamIOException - if the input stream could not be readCopyright © 2022 MuleSoft, Inc.. All rights reserved.