public class GenericModelSerializer extends java.lang.Object implements ArtifactSerializer<AbstractModel>
Constructor and Description |
---|
GenericModelSerializer() |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
create(java.io.InputStream in)
Creates the artifact from the provided
InputStream . |
static void |
register(java.util.Map<java.lang.String,ArtifactSerializer> factories) |
void |
serialize(AbstractModel artifact,
java.io.OutputStream out)
Serializes the artifact to the provided
OutputStream . |
public AbstractModel create(java.io.InputStream in) throws java.io.IOException, InvalidFormatException
ArtifactSerializer
InputStream
.
The InputStream
remains open.create
in interface ArtifactSerializer<AbstractModel>
java.io.IOException
InvalidFormatException
public void serialize(AbstractModel artifact, java.io.OutputStream out) throws java.io.IOException
ArtifactSerializer
OutputStream
.
The OutputStream
remains open.serialize
in interface ArtifactSerializer<AbstractModel>
java.io.IOException
public static void register(java.util.Map<java.lang.String,ArtifactSerializer> factories)
Copyright © 2010 - 2020 Adobe. All Rights Reserved