org.cogroo.util.serializers
Class ByteArraySerializer
java.lang.Object
org.cogroo.util.serializers.ByteArraySerializer
- All Implemented Interfaces:
- opennlp.tools.util.model.ArtifactSerializer<byte[]>
public class ByteArraySerializer
- extends Object
- implements opennlp.tools.util.model.ArtifactSerializer<byte[]>
ByteArraySerializer
public ByteArraySerializer()
create
public byte[] create(InputStream in)
throws IOException,
opennlp.tools.util.InvalidFormatException
- Specified by:
create
in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>
- Throws:
IOException
opennlp.tools.util.InvalidFormatException
serialize
public void serialize(byte[] artifact,
OutputStream out)
throws IOException
- Specified by:
serialize
in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>
- Throws:
IOException
Copyright © 2012-2013 CoGrOO. All Rights Reserved.