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 int
LHA??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?????????
-