/**
* @author Prenom Nom
* @author Prenom Nom
**/
public class Info {
/** Le caractere code **/
char c;
/** Le nombre d'occurrences du caractere code **/
int nb;
/** Le codage de Huffman du caractere **/
String codage;
public Info(char c, int nb){
this.c = c;
this.nb = nb;
codage = null;
}
public char getChar() {return c;}
public int getNb() {return nb;}
public String getCodage() {return codage;}
public void addOne() {nb++;}
public void setCodage(String st) {codage = st;}
public String toString(){
return "Caractere : "+c+
", nombre d'occurrences : "+nb+
", codage : "+codage;
}
}