public class ByteArraySerializer extends java.lang.Object implements ArtifactSerializer<byte[]>
Constructor and Description |
---|
ByteArraySerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
create(java.io.InputStream in)
Creates the artifact from the provided
InputStream . |
void |
serialize(byte[] artifact,
java.io.OutputStream out)
Serializes the artifact to the provided
OutputStream . |
public byte[] create(java.io.InputStream in) throws java.io.IOException
ArtifactSerializer
InputStream
.
The InputStream
remains open.create
in interface ArtifactSerializer<byte[]>
java.io.IOException
public void serialize(byte[] artifact, java.io.OutputStream out) throws java.io.IOException
ArtifactSerializer
OutputStream
.
The OutputStream
remains open.serialize
in interface ArtifactSerializer<byte[]>
java.io.IOException
Copyright © 2010 - 2023 Adobe. All Rights Reserved