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