Package opennlp.tools.util.model

# Class DictionarySerializer

java.lang.Object
opennlp.tools.util.model.DictionarySerializer

All Implemented Interfaces:
  `opennlp.tools.util.model.ArtifactSerializer<Dictionary>`

public class DictionarySerializer extends Object implements opennlp.tools.util.model.ArtifactSerializer<Dictionary>
An `ArtifactSerializer` implementation for `dictionaries`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DictionarySerializer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Dictionary`
  `create(InputStream in)`
  `void`
  `serialize(Dictionary dictionary, OutputStream out)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DictionarySerializer

    public DictionarySerializer()

- ## Method Details

  - ### create

    public Dictionary create(InputStream in) throws IOException
    Specified by:
      `create` in interface `opennlp.tools.util.model.ArtifactSerializer<Dictionary>`
    Throws:
      `IOException`

  - ### serialize

    public void serialize(Dictionary dictionary, OutputStream out) throws IOException
    Specified by:
      `serialize` in interface `opennlp.tools.util.model.ArtifactSerializer<Dictionary>`
    Throws:
      `IOException`