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, InvalidFormatException
InputStream.
The InputStream remains open.IOExceptionInvalidFormatExceptionvoid serialize(T artifact, OutputStream out) throws IOException
OutputStream.
The OutputStream remains open.artifact - out - IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.