Package opennlp.tools.util.model
Class ChunkerModelSerializer
java.lang.Object
opennlp.tools.util.model.ChunkerModelSerializer
- All Implemented Interfaces:
ArtifactSerializer<ChunkerModel>
An
ArtifactSerializer implementation for models.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(InputStream in) Creates an artifact from the providedInputStream.voidserialize(ChunkerModel artifact, OutputStream out) Serializes an artifact to the providedOutputStream.
-
Constructor Details
-
ChunkerModelSerializer
public ChunkerModelSerializer()
-
-
Method Details
-
create
Description copied from interface:ArtifactSerializerCreates an artifact from the providedInputStream.Note: The
InputStreamremains open.- Specified by:
createin interfaceArtifactSerializer<ChunkerModel>- Parameters:
in- A valid, openInputStreamready to read from.- Returns:
- A valid
artifact. - Throws:
IOException- Thrown if IO errors occurred during creation.
-
serialize
Description copied from interface:ArtifactSerializerSerializes an artifact to the providedOutputStream.Note: The
OutputStreamremains open.- Specified by:
serializein interfaceArtifactSerializer<ChunkerModel>- Parameters:
artifact- A validartifact.out- A valid, openOutputStreamready to write to.- Throws:
IOException- Thrown if IO errors occurred during serialization.
-