public class ByteArraySerializer extends Object implements ArtifactSerializer<byte[]>
Constructor and Description |
---|
ByteArraySerializer() |
Modifier and Type | Method and Description |
---|---|
byte[] |
create(InputStream in)
Creates the artifact from the provided
InputStream . |
void |
serialize(byte[] artifact,
OutputStream out)
Serializes the artifact to the provided
OutputStream . |
public byte[] create(InputStream in) throws IOException
ArtifactSerializer
InputStream
.
The InputStream
remains open.create
in interface ArtifactSerializer<byte[]>
IOException
public void serialize(byte[] artifact, OutputStream out) throws IOException
ArtifactSerializer
OutputStream
.
The OutputStream
remains open.serialize
in interface ArtifactSerializer<byte[]>
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.