de.dante.extex.language.hyphenation.liang
Class CompressedLiangsHyphenationTable

java.lang.Object
  extended byde.dante.extex.language.hyphenation.base.BaseHyphenationTable
      extended byde.dante.extex.language.hyphenation.liang.LiangsHyphenationTable
          extended byde.dante.extex.language.hyphenation.liang.CompressedLiangsHyphenationTable
All Implemented Interfaces:
Hyphenator, Language, LigatureBuilder, ModifiableLanguage, java.io.Serializable, WordTokenizer

public class CompressedLiangsHyphenationTable
extends LiangsHyphenationTable

This class implements Liang's algorithm for hyphenation with a compressed hyphenation tree. Th hyphenation tree is compressed when the object is serialized. Afterwards no more patterns can be added.

Version:
$Revision: 1.4 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
CompressedLiangsHyphenationTable()
           
 
Method Summary
protected  void writeObject(java.io.ObjectOutputStream out)
          This method compresses the table upon dumping.
 
Methods inherited from class de.dante.extex.language.hyphenation.liang.LiangsHyphenationTable
addPattern, dump, getPatterns, hyphenate, hyphenateOne, isCompressed, setCompressed
 
Methods inherited from class de.dante.extex.language.hyphenation.base.BaseHyphenationTable
addHyphenation, createHyphenation, findWord, getLeftHyphenmin, getLigature, getName, getRightHyphenmin, insertLigatures, insertShy, isHyphenActive, normalize, readResolve, setHyphenActive, setLeftHyphenmin, setLigatureBuilder, setName, setRightHyphenmin, setWordTokenizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

CompressedLiangsHyphenationTable

public CompressedLiangsHyphenationTable()
Method Detail

writeObject

protected void writeObject(java.io.ObjectOutputStream out)
                    throws java.io.IOException
This method compresses the table upon dumping. It is one of the magic methods invoked during serialization.

Parameters:
out - the output stream
Throws:
java.io.IOException - in case of an IO error