public interface ArtifactSerializer<T>
InputStream
.Modifier and Type | Method and Description |
---|---|
T |
create(InputStream in)
Creates the artifact from the provided
InputStream . |
void |
serialize(T artifact,
OutputStream out)
Serializes the artifact to the provided
OutputStream . |
T create(InputStream in) throws IOException
InputStream
.
The InputStream
remains open.IOException
void serialize(T artifact, OutputStream out) throws IOException
OutputStream
.
The OutputStream
remains open.artifact
- out
- IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.