Class HashDefault

java.lang.Object
jp.gr.java_conf.dangan.util.lha.HashDefault
All Implemented Interfaces:
HashMethod

public class HashDefault extends 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

    Modifier and Type
    Method
    Description
    int
    hash(int position)
    ?n?b?V???????B
    ?R???X?g???N?^???n?????? TextBuffer ?? position ?????? ?f?[?^?p?^???? hash?l?????????B
    int
    ?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
    int
    ?n?b?V???e?[?u?????T?C?Y???????B
    ?}???n?b?V???????? 0x0000 ?` 0x7FFF ???n?b?V???l?????????????A ?}?????\?b?h?????? 0x8000(32768) ???????B

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      hash in interface HashMethod
      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 interface HashMethod
      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 interface HashMethod
      Returns:
      ???? 0x8000(32768)