public class GenericModelSerializer extends Object implements ArtifactSerializer<AbstractModel>
Constructor and Description |
---|
GenericModelSerializer() |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
create(InputStream in)
Creates the artifact from the provided
InputStream . |
static void |
register(Map<String,ArtifactSerializer> factories) |
void |
serialize(AbstractModel artifact,
OutputStream out)
Serializes the artifact to the provided
OutputStream . |
public AbstractModel create(InputStream in) throws IOException
ArtifactSerializer
InputStream
.
The InputStream
remains open.create
in interface ArtifactSerializer<AbstractModel>
IOException
public void serialize(AbstractModel artifact, OutputStream out) throws IOException
ArtifactSerializer
OutputStream
.
The OutputStream
remains open.serialize
in interface ArtifactSerializer<AbstractModel>
IOException
public static void register(Map<String,ArtifactSerializer> factories)
Copyright © 2020 The Apache Software Foundation. All rights reserved.