opennlp.tools.util.model
Class ClassSerializer

java.lang.Object
  extended by opennlp.tools.util.model.ClassSerializer
All Implemented Interfaces:
ArtifactSerializer<Class<?>>

Deprecated.

@Deprecated
public class ClassSerializer
extends Object
implements ArtifactSerializer<Class<?>>


Constructor Summary
ClassSerializer()
          Deprecated.  
 
Method Summary
 Class<?> create(InputStream in)
          Deprecated. Creates the artifact from the provided InputStream.
 void serialize(Class<?> artifact, OutputStream out)
          Deprecated. Serializes the artifact to the provided OutputStream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSerializer

public ClassSerializer()
Deprecated. 
Method Detail

create

public Class<?> create(InputStream in)
                throws IOException,
                       InvalidFormatException
Deprecated. 
Description copied from interface: ArtifactSerializer
Creates the artifact from the provided InputStream. The InputStream remains open.

Specified by:
create in interface ArtifactSerializer<Class<?>>
Returns:
the artifact
Throws:
IOException
InvalidFormatException

serialize

public void serialize(Class<?> artifact,
                      OutputStream out)
               throws IOException
Deprecated. 
Description copied from interface: ArtifactSerializer
Serializes the artifact to the provided OutputStream. The OutputStream remains open.

Specified by:
serialize in interface ArtifactSerializer<Class<?>>
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.