opennlp.tools.dictionary.serializer
Class DictionarySerializer

java.lang.Object
  extended by opennlp.tools.dictionary.serializer.DictionarySerializer

public class DictionarySerializer
extends java.lang.Object

Version:
$Revision: 1.3 $, $Date: 2007/03/30 09:46:33 $
Author:
Joern Kottmann

Constructor Summary
DictionarySerializer()
           
 
Method Summary
static void create(java.io.InputStream in, EntryInserter inserter)
          Creates Entrys form the given InputStream and forwards these Entrys to the EntryInserter.
static void serialize(java.io.OutputStream out, java.util.Iterator entries)
          Serializes the given entries to the given OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionarySerializer

public DictionarySerializer()
Method Detail

create

public static void create(java.io.InputStream in,
                          EntryInserter inserter)
                   throws java.io.IOException,
                          InvalidFormatException
Creates Entrys form the given InputStream and forwards these Entrys to the EntryInserter.

Parameters:
in -
inserter -
Throws:
java.io.IOException
InvalidFormatException

serialize

public static void serialize(java.io.OutputStream out,
                             java.util.Iterator entries)
                      throws java.io.IOException
Serializes the given entries to the given OutputStream.

Parameters:
out -
entries -
Throws:
java.io.IOException - If an I/O error occurs


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.