Class ByteArraySerializer
java.lang.Object
opennlp.tools.util.model.ByteArraySerializer
- All Implemented Interfaces:
opennlp.tools.util.model.ArtifactSerializer<byte[]>
public class ByteArraySerializer
extends Object
implements opennlp.tools.util.model.ArtifactSerializer<byte[]>
An
ArtifactSerializer implementation for binary data, kept in byte[].-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]create(InputStream in) voidserialize(byte[] artifact, OutputStream out)
-
Constructor Details
-
ByteArraySerializer
public ByteArraySerializer()
-
-
Method Details
-
create
- Specified by:
createin interfaceopennlp.tools.util.model.ArtifactSerializer<byte[]>- Throws:
IOException
-
serialize
- Specified by:
serializein interfaceopennlp.tools.util.model.ArtifactSerializer<byte[]>- Throws:
IOException
-