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
ArtifactSerializerInputStream.
 The InputStream remains open.create in interface ArtifactSerializer<AbstractModel>IOExceptionpublic void serialize(AbstractModel artifact, OutputStream out) throws IOException
ArtifactSerializerOutputStream.
 The OutputStream remains open.serialize in interface ArtifactSerializer<AbstractModel>IOExceptionpublic static void register(Map<String,ArtifactSerializer> factories)
Copyright © 2021 The Apache Software Foundation. All rights reserved.