public static class POSTaggerFactory.POSDictionarySerializer extends Object implements ArtifactSerializer<POSDictionary>
| Constructor and Description |
|---|
POSDictionarySerializer() |
| Modifier and Type | Method and Description |
|---|---|
POSDictionary |
create(InputStream in)
Creates the artifact from the provided
InputStream. |
void |
serialize(POSDictionary artifact,
OutputStream out)
Serializes the artifact to the provided
OutputStream. |
public POSDictionary create(InputStream in) throws IOException
ArtifactSerializerInputStream.
The InputStream remains open.create in interface ArtifactSerializer<POSDictionary>IOExceptionpublic void serialize(POSDictionary artifact, OutputStream out) throws IOException
ArtifactSerializerOutputStream.
The OutputStream remains open.serialize in interface ArtifactSerializer<POSDictionary>IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.