Package jp.gr.java_conf.dangan.util.lha
Class StaticHuffman
java.lang.Object
jp.gr.java_conf.dangan.util.lha.StaticHuffman
???I?n?t?}???p???[?e?B???e?B?????Q???????????B
?n?t?}????????????16?r?b?g???�˜?????????B
?n?t?}????????????16?r?b?g???�˜?????????B
-- revision history --
$Log: StaticHuffman.java,v $
Revision 1.0 2002/07/24 00:00:00 dangan
add to version control
[maintenance]
?\?[?X????
?^?u?p?~
???C?Z???X?�÷???C??
- Version:
- $Revision: 1.0 $
- Author:
- $Author: dangan $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLHA??DOS??16bit???[?h???g?p?????????????�}???????? ?n?t?}???????????�˜???B -
Method Summary
Modifier and TypeMethodDescriptionstatic short[]createTable(int[] LenList) LenList ?????A?n?t?}???????p???e?[?u?????�÷?�Ê?????Bstatic short[][]createTableAndTree(int[] LenList, int TableBits) LenList ?????A?n?t?}???????p???e?[?u?????????�÷?�Ê?????B ?e?[?u???? TableBits ???????????????A?????????????????????i?[???????B
?????l?? new short[][]{ Table, Tree[0], Tree[1] } ???????B
?e?[?u???????�‘?????????????????????????????A?????l???????????A ???????????????????R?[?h???S?r?b?g???]???????????????B ?????l?????????????? ?????????????????? index ???????A Tree[bit][index] ?????????g?p?????Bstatic int[]FreqListToLenList(int[] FreqList) ?p?x?\???? ?n?t?}?????????r?b?g?????\?????�Ê?????Bstatic int[]FreqListToLenListOriginal(int[] FreqList) ?p?x?\???? ?n?t?}?????????r?b?g?????\?????�Ê?????B ?I???W?i????LHA?????�÷?R?[?h???o???????Bstatic int[]LenListToCodeList(int[] LenList) ?n?t?}?????????????X?g???? ?n?t?}???????\?????�Ê?????B
-
Field Details
-
LimitLen
public static final int LimitLenLHA??DOS??16bit???[?h???g?p?????????????�}???????? ?n?t?}???????????�˜???B- See Also:
-
-
Method Details
-
FreqListToLenList
public static int[] FreqListToLenList(int[] FreqList) ?p?x?\???? ?n?t?}?????????r?b?g?????\?????�Ê?????B- Parameters:
FreqList- ?p?x?\- Returns:
- ?n?t?}?????????r?b?g?????\
-
FreqListToLenListOriginal
public static int[] FreqListToLenListOriginal(int[] FreqList) ?p?x?\???? ?n?t?}?????????r?b?g?????\?????�Ê?????B ?I???W?i????LHA?????�÷?R?[?h???o???????B- Parameters:
FreqList- ?p?x?\- Returns:
- ?n?t?}?????????r?b?g?????\
-
LenListToCodeList
?n?t?}?????????????X?g???? ?n?t?}???????\?????�Ê?????B- Parameters:
LenList- ?n?t?}?????????????X?g- Returns:
- ?n?t?}???????\
- Throws:
BadHuffmanTableException- LenList???s?????????A ?n?t?}???????\???�÷?�Ê?o?????�‘????
-
createTable
LenList ?????A?n?t?}???????p???e?[?u?????�÷?�Ê?????B- Parameters:
LenList- ?n?t?}???????????\- Returns:
- ?n?t?}???????p?e?[?u???B
- Throws:
BadHuffmanTableException- LenList???s?????????A ?n?t?}???????\???�÷?�Ê?o?????�‘????
-
createTableAndTree
public static short[][] createTableAndTree(int[] LenList, int TableBits) throws BadHuffmanTableException LenList ?????A?n?t?}???????p???e?[?u?????????�÷?�Ê?????B ?e?[?u???? TableBits ???????????????A?????????????????????i?[???????B
?????l?? new short[][]{ Table, Tree[0], Tree[1] } ???????B
?e?[?u???????�‘?????????????????????????????A?????l???????????A ???????????????????R?[?h???S?r?b?g???]???????????????B ?????l?????????????? ?????????????????? index ???????A Tree[bit][index] ?????????g?p?????B- Parameters:
LenList- ?n?t?}???????????\TableBits- ?n?t?}???????p?e?[?u???????????B- Returns:
- ?n?t?}???????p?e?[?u???????B
- Throws:
BadHuffmanTableException- LenList???s?????????A ?n?t?}???????\???�÷?�Ê?o?????�‘????
-