Class HashShort

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

public class HashShort extends Object implements HashMethod
?f?[?^?p?^????????2?o?C?g???? 0 ?` 4095 ???n?b?V???l?????????n?b?V???????B
 -- revision history --
 $Log: HashShort.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
 [maintanance]
     ?\?[?X????
     ?^?u?p?~
     ???C?Z???X????C??

 
Version:
$Revision: 1.0 $
Author:
$Author: dangan $
  • Constructor Summary

    Constructors
    Constructor
    Description
    HashShort(byte[] TextBuffer)
    ?f?[?^?p?^????????2?o?C?g???? 0x000 ?` 0xFFF ???????l???????? ?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?????????f?[?^?p?^???????? 2 ?o?C?g???f?[?^???? ?n?b?V???l?????????????A?}?????\?b?h?????? 2 ???????B
    int
    ?n?b?V???e?[?u?????T?C?Y???????B
    ?}???n?b?V???????? 0x000 ?` 0xFFF ???????n?b?V???l???????????? ?}?????\?b?h?????? 0x1000(4096) ???????B

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HashShort

      public HashShort(byte[] TextBuffer)
      ?f?[?^?p?^????????2?o?C?g???? 0x000 ?` 0xFFF ???????l???????? ?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?????????f?[?^?p?^???????? 2 ?o?C?g???f?[?^???? ?n?b?V???l?????????????A?}?????\?b?h?????? 2 ???????B
      Specified by:
      hashRequires in interface HashMethod
      Returns:
      ???? 2
    • tableSize

      public int tableSize()
      ?n?b?V???e?[?u?????T?C?Y???????B
      ?}???n?b?V???????? 0x000 ?` 0xFFF ???????n?b?V???l???????????? ?}?????\?b?h?????? 0x1000(4096) ???????B
      Specified by:
      tableSize in interface HashMethod
      Returns:
      ???? 0x1000(4096)