Package jp.gr.java_conf.dangan.util.lha
Class HashDefault
java.lang.Object
jp.gr.java_conf.dangan.util.lha.HashDefault
- All Implemented Interfaces:
HashMethod
?????v???O???? ar940528 ?? LHa for Unix ???g?p???????�‘???n?b?V???????B
gzip ???g?p???????�‘?????Q?l?????????????B
gzip ???g?p???????�‘?????Q?l?????????????B
-- revision history --
$Log: HashDefault.java,v $
Revision 1.0 2002/08/05 00:00:00 dangan
add to version control
[change]
HashMethod ???C???^?t?F?C?X???X???????????C???e?t?F?C?X???X?B
?R???X?g???N?^???????`?F?b?N???????B
[maintanance]
?\?[?X????
?^?u?p?~
???C?Z???X?�÷???C??
- Version:
- $Revision: 1.0 $
- Author:
- $Author: dangan $
-
Constructor Summary
ConstructorsConstructorDescriptionHashDefault(byte[] TextBuffer) ar940528 ?? LHa for Unix ???g?p???????�‘???n?b?V?????????\?z?????B -
Method Summary
Modifier and TypeMethodDescriptioninthash(int position) ?n?b?V???????B
?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l???�÷?�Ê?????Bint?n?b?V?????????n?b?V???l???�÷?�Ê???????????g?p?????o?C?g?????????B
?�}???n?b?V???????? 3?o?C?g???f?[?^???? ?V?t?g??XOR???g?p?????n?b?V???l???�÷?�Ê?????????A ?�}?????\?b?h?????? 3 ???????Bint?n?b?V???e?[?u?????T?C?Y???????B
?�}???n?b?V???????? 0x0000 ?` 0x7FFF ???n?b?V???l???�÷?�Ê?????????A ?�}?????\?b?h?????? 0x8000(32768) ???????B
-
Constructor Details
-
HashDefault
public HashDefault(byte[] TextBuffer) ar940528 ?? LHa for Unix ???g?p???????�‘???n?b?V?????????\?z?????B- Parameters:
TextBuffer- LZSS???k?p???o?b?t?@?B Hash?l?�÷?�Ê???????????????p???g?p?????B
-
-
Method Details
-
hash
public int hash(int position) ?n?b?V???????B
?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l???�÷?�Ê?????B- Specified by:
hashin interfaceHashMethod- Parameters:
position- ?f?[?^?p?^?????J?n???u- Returns:
- ?n?b?V???l
-
hashRequires
public int hashRequires()?n?b?V?????????n?b?V???l???�÷?�Ê???????????g?p?????o?C?g?????????B
?�}???n?b?V???????? 3?o?C?g???f?[?^???? ?V?t?g??XOR???g?p?????n?b?V???l???�÷?�Ê?????????A ?�}?????\?b?h?????? 3 ???????B- Specified by:
hashRequiresin interfaceHashMethod- Returns:
- ???? 3
-
tableSize
public int tableSize()?n?b?V???e?[?u?????T?C?Y???????B
?�}???n?b?V???????? 0x0000 ?` 0x7FFF ???n?b?V???l???�÷?�Ê?????????A ?�}?????\?b?h?????? 0x8000(32768) ???????B- Specified by:
tableSizein interfaceHashMethod- Returns:
- ???? 0x8000(32768)
-