Package jp.gr.java_conf.dangan.util.lha
Class PreLh1Decoder
java.lang.Object
jp.gr.java_conf.dangan.util.lha.PreLh1Decoder
- All Implemented Interfaces:
PreLzssDecoder
-lh1- ?????p?? PreLzssDecoder?B
-- revision history --
$Log: PreLh1Decoder.java,v $
Revision 1.1 2002/12/01 00:00:00 dangan
[maintenance]
?\?[?X????
Revision 1.0 2002/08/05 00:00:00 dangan
add to version control
[bug fix]
available ???v?Z???????????????C???B
[maintenance]
?\?[?X????
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) DynamicHuffmancode???????p?????I?n?t?}????(package private) BitInputStream-lh1- ?????k?f?[?^?????????? BitInputStream(package private) DynamicHuffmanhuffman ???o?b?N?A?b?v?p(package private) int[]?I?t?Z?b?g????????6bit?????p ?n?t?}???????????X?g?B(package private) short[]?I?t?Z?b?g????????6bit?????p?e?[?u???B(package private) int?I?t?Z?b?g????????6bit?????p?e?[?u?????????????K?v??bit???B -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint?u???b?N???????????o???�}?????o?????????o?C?g?????????B
InputStream ?? available() ?????�‘?A ?�}???????o?C?g?????K?????????????????�‘???�‘?????????????�}???Bvoidclose()?�}???X?g???[???????�÷?A?g?p?????�‘???S???????????????????Bint-lh1-?`????LZSS???????T?C?Y???????Bint-lh1-?`????LZSS?????????v?????????Bint-lh1-?`????LZSS?????k?A?????k?????l???????Bvoidmark(int readLimit) ???�}???????????X?g???[???????????u???}?[?N?????????A reset() ???\?b?h???}?[?N???????_?? ???????????u?? ?????????????????B
InputStream ?? mark() ?????�‘?AreadLimit ?????????? ???E?o?C?g???????O???}?[?N???u???????????????\???? ?????????????????�}???Bboolean???�}???????????X?g???[???? mark() ?? reset() ???T?|?[?g?????????????BintreadCode()-lh1- ?????k?????? 1byte ??LZSS?�‘???k???f?[?^?A ???????????k?R?[?h?????????v?????????????Bint-lh1- ?????k?????? LZSS???k?R?[?h?????????v???u???????????Bvoidreset()???�}???????????X?g???[???????????????u???????? mark() ???\?b?h???????o???????????????u???????????B
-
Field Details
-
in
-lh1- ?????k?f?[?^?????????? BitInputStream -
huffman
DynamicHuffman huffmancode???????p?????I?n?t?}???? -
offHiLen
int[] offHiLen?I?t?Z?b?g????????6bit?????p ?n?t?}???????????X?g?B -
offHiTable
short[] offHiTable?I?t?Z?b?g????????6bit?????p?e?[?u???B -
offHiTableBits
int offHiTableBits?I?t?Z?b?g????????6bit?????p?e?[?u?????????????K?v??bit???B -
markHuffman
DynamicHuffman markHuffmanhuffman ???o?b?N?A?b?v?p
-
-
Constructor Details
-
PreLh1Decoder
-lh1- ?????p PreLzssDecoder ???\?z?????B- Parameters:
in- -lh1- ?????k???????f?[?^???????????????X?g???[??
-
-
Method Details
-
readCode
-lh1- ?????k?????? 1byte ??LZSS?�‘???k???f?[?^?A ???????????k?R?[?h?????????v?????????????B- Specified by:
readCodein interfacePreLzssDecoder- Returns:
- 1byte ?? ?�‘???k???f?[?^?????????A ???k?????????k?R?[?h?????????v??
- Throws:
IOException- ???o???G???[?????�÷????????EOFException- EndOfStream???B????????
-
readOffset
-lh1- ?????k?????? LZSS???k?R?[?h?????????v???u???????????B- Specified by:
readOffsetin interfacePreLzssDecoder- Returns:
- -lh1- ?????k?????????k?R?[?h?????????v???u
- Throws:
IOException- ???o???G???[?????�÷?????????BEOFException- ?f?[?^???r?????????????�‘???? ?\?????? EndOfStream ?????B?????????BBitDataBrokenException- ?f?[?^???r?????????????�‘???? ?\?????? EndOfStream ?????B???????A ???????o???G???[?????�÷?????BNotEnoughBitsException- ?f?[?^???r?????????????�‘???? ?\?????? EndOfStream ?????B???????A ???????o???G???[?????�÷?????B
-
mark
public void mark(int readLimit) ???�}???????????X?g???[???????????u???}?[?N?????????A reset() ???\?b?h???}?[?N???????_?? ???????????u?? ?????????????????B
InputStream ?? mark() ?????�‘?AreadLimit ?????????? ???E?o?C?g???????O???}?[?N???u???????????????\???? ?????????????????�}???B- Specified by:
markin interfacePreLzssDecoder- Parameters:
readLimit- ?}?[?N???u???????????E???o?C?g???B ?�}???o?C?g?????�L?????f?[?^?????? ?????????? reset()?????????????? ?\?????????B- See Also:
-
reset
???�}???????????X?g???[???????????????u???????? mark() ???\?b?h???????o???????????????u???????????B- Specified by:
resetin interfacePreLzssDecoder- Throws:
IOException- ???o???G???[?????�÷????????
-
markSupported
public boolean markSupported()???�}???????????X?g???[???? mark() ?? reset() ???T?|?[?g?????????????B- Specified by:
markSupportedin interfacePreLzssDecoder- Returns:
- ?X?g???[???? mark() ?? reset() ??
?T?|?[?g?????????? true?B
?T?|?[?g?????�‘?????? false?B
-
available
?u???b?N???????????o???�}?????o?????????o?C?g?????????B
InputStream ?? available() ?????�‘?A ?�}???????o?C?g?????K?????????????????�‘???�‘?????????????�}???B- Specified by:
availablein interfacePreLzssDecoder- Returns:
- ?u???b?N?????�‘???????o?????????o?C?g???B
- Throws:
IOException- ???o???G???[?????�÷????????- See Also:
-
close
?�}???X?g???[???????�÷?A?g?p?????�‘???S???????????????????B- Specified by:
closein interfacePreLzssDecoder- Throws:
IOException- ???o???G???[?????�÷????????
-
getDictionarySize
public int getDictionarySize()-lh1-?`????LZSS???????T?C?Y???????B- Specified by:
getDictionarySizein interfacePreLzssDecoder- Returns:
- -lh1-?`????LZSS???????T?C?Y
-
getMaxMatch
public int getMaxMatch()-lh1-?`????LZSS?????????v?????????B- Specified by:
getMaxMatchin interfacePreLzssDecoder- Returns:
- -lh1-?`????LZSS?????????v??
-
getThreshold
public int getThreshold()-lh1-?`????LZSS?????k?A?????k?????l???????B- Specified by:
getThresholdin interfacePreLzssDecoder- Returns:
- -lh1-?`????LZSS?????k?A?????k?????l
-