public interface ArtifactSerializer<T>
InputStream
.Modifier and Type | Method and Description |
---|---|
T |
create(java.io.InputStream in)
Creates the artifact from the provided
InputStream . |
void |
serialize(T artifact,
java.io.OutputStream out)
Serializes the artifact to the provided
OutputStream . |
T create(java.io.InputStream in) throws java.io.IOException, InvalidFormatException
InputStream
.
The InputStream
remains open.java.io.IOException
InvalidFormatException
void serialize(T artifact, java.io.OutputStream out) throws java.io.IOException
OutputStream
.
The OutputStream
remains open.artifact
- out
- java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved