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
public class HashDefault extends java.lang.Object implements HashMethod
?????v???O???? ar940528 ?? LHa for Unix ???g?p??????????n?b?V???????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
Constructors Constructor Description HashDefault(byte[] TextBuffer)
ar940528 ?? LHa for Unix ???g?p??????????n?b?V?????????\?z?????B
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hash(int position)
?n?b?V???????B
?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l?????????Bint
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 ???????Bint
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
-
-
-
Method Detail
-
hash
public int hash(int position)
?n?b?V???????B
?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l?????????B- Specified by:
hash
in 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:
hashRequires
in 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:
tableSize
in interfaceHashMethod
- Returns:
- ???? 0x8000(32768)
-
-