tvouriot.jcode.codes
Class Huffman

java.lang.Object
  |
  +--tvouriot.jcode.codes.CodeCompression
        |
        +--tvouriot.jcode.codes.Huffman

public final class Huffman
extends CodeCompression

Classe implantant le code de compression de Huffman.


Constructor Summary
Huffman(javax.swing.text.JTextComponent t, javax.swing.JProgressBar progress)
          Constructeur
 
Method Summary
 void init(java.io.File f)
          Initialisation du code à partir d'un fichier
 void init(javax.swing.text.JTextComponent textZone, javax.swing.JProgressBar progress)
          Initialisation du code à partir du texte d'un JTextComponent
 
Methods inherited from class tvouriot.jcode.codes.CodeCompression
coder, coder, decoder, decoder, getLgMoy, getTableChar, getTableCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Huffman

public Huffman(javax.swing.text.JTextComponent t,
               javax.swing.JProgressBar progress)
Constructeur
Parameters:
progress - barre de progression
t - texte composant contenant le texte à compresser
Method Detail

init

public void init(javax.swing.text.JTextComponent textZone,
                 javax.swing.JProgressBar progress)
Initialisation du code à partir du texte d'un JTextComponent
Overrides:
init in class CodeCompression
Parameters:
textZone - texte à traiter
progress - barre de progression

init

public void init(java.io.File f)
Initialisation du code à partir d'un fichier
Overrides:
init in class CodeCompression
Parameters:
f - fichier utilisé pour l'initialisation