public class ByteArraySerializer extends Object implements opennlp.tools.util.model.ArtifactSerializer<byte[]>
| Constructor and Description |
|---|
ByteArraySerializer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
create(InputStream in) |
void |
serialize(byte[] artifact,
OutputStream out) |
public byte[] create(InputStream in) throws IOException, opennlp.tools.util.InvalidFormatException
create in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>IOExceptionopennlp.tools.util.InvalidFormatExceptionpublic void serialize(byte[] artifact,
OutputStream out)
throws IOException
serialize in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>IOExceptionCopyright © 2012–2017 CoGrOO. All rights reserved.