Package opennlp.tools.util.model
Class ClassSerializer
- java.lang.Object
-
- opennlp.tools.util.model.ClassSerializer
-
- All Implemented Interfaces:
ArtifactSerializer<java.lang.Class<?>>
@Deprecated public class ClassSerializer extends java.lang.Object implements ArtifactSerializer<java.lang.Class<?>>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description ClassSerializer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Class<?>
create(java.io.InputStream in)
Deprecated.Creates the artifact from the providedInputStream
.void
serialize(java.lang.Class<?> artifact, java.io.OutputStream out)
Deprecated.Serializes the artifact to the providedOutputStream
.
-
-
-
Method Detail
-
create
public java.lang.Class<?> create(java.io.InputStream in) throws java.io.IOException, InvalidFormatException
Deprecated.Description copied from interface:ArtifactSerializer
Creates the artifact from the providedInputStream
. TheInputStream
remains open.- Specified by:
create
in interfaceArtifactSerializer<java.lang.Class<?>>
- Returns:
- the artifact
- Throws:
java.io.IOException
InvalidFormatException
-
serialize
public void serialize(java.lang.Class<?> artifact, java.io.OutputStream out) throws java.io.IOException
Deprecated.Description copied from interface:ArtifactSerializer
Serializes the artifact to the providedOutputStream
. TheOutputStream
remains open.- Specified by:
serialize
in interfaceArtifactSerializer<java.lang.Class<?>>
- Throws:
java.io.IOException
-
-