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
ArtifactSerializerInputStream.
The InputStream remains open.create in interface ArtifactSerializer<byte[]>java.io.IOExceptionpublic void serialize(byte[] artifact,
java.io.OutputStream out)
throws java.io.IOException
ArtifactSerializerOutputStream.
The OutputStream remains open.serialize in interface ArtifactSerializer<byte[]>java.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved