org.cogroo.util.serializers
Class ByteArraySerializer

java.lang.Object
  extended by 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[]>


Constructor Summary
ByteArraySerializer()
           
 
Method Summary
 byte[] create(InputStream in)
           
 void serialize(byte[] artifact, OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArraySerializer

public ByteArraySerializer()
Method Detail

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.