Package jp.gr.java_conf.dangan.util.lha
Class StaticHuffman
- java.lang.Object
-
- jp.gr.java_conf.dangan.util.lha.StaticHuffman
-
public class StaticHuffman extends java.lang.Object???I?n?t?}???p???[?e?B???e?B?????Q???????????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
Fields Modifier and Type Field Description static intLimitLenLHA??DOS??16bit???[?h???g?p?????????????}???????? ?n?t?}??????????????B
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
LimitLen
public static final int LimitLen
LHA??DOS??16bit???[?h???g?p?????????????}???????? ?n?t?}??????????????B- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static int[] LenListToCodeList(int[] LenList) throws BadHuffmanTableException?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
public static short[] createTable(int[] LenList) throws BadHuffmanTableExceptionLenList ?????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 BadHuffmanTableExceptionLenList ?????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?????????
-
-