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 Details

    • ByteArraySerializer

      public ByteArraySerializer()
  • Method Details

    • create

      public byte[] create(InputStream in) throws IOException
      Specified by:
      create in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>
      Throws:
      IOException
    • serialize

      public void serialize(byte[] artifact, OutputStream out) throws IOException
      Specified by:
      serialize in interface opennlp.tools.util.model.ArtifactSerializer<byte[]>
      Throws:
      IOException