opennlp.tools.util.model
Class ClassSerializer
java.lang.Object
opennlp.tools.util.model.ClassSerializer
- All Implemented Interfaces:
- ArtifactSerializer<Class<?>>
Deprecated.
@Deprecated
public class ClassSerializer
- extends Object
- implements ArtifactSerializer<Class<?>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassSerializer
public ClassSerializer()
- Deprecated.
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:
-
- 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 © 2010. All Rights Reserved.