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
ArtifactSerializerInputStream.
 The InputStream remains open.create in interface ArtifactSerializer<byte[]>IOExceptionpublic void serialize(byte[] artifact,
                      OutputStream out)
               throws IOException
ArtifactSerializerOutputStream.
 The OutputStream remains open.serialize in interface ArtifactSerializer<byte[]>IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.