Class SimpleSearch

java.lang.Object
jp.gr.java_conf.dangan.util.lha.SimpleSearch
All Implemented Interfaces:
LzssSearchMethod

public class SimpleSearch extends Object implements LzssSearchMethod
???????????@?\???p???? LzssSearchMethod ???????V???v?????????B
?????@?\???p?????????A ?????????@?\???p????????????~?????x????A ??????????????????????????B
 -- revision history --
 $Log: SimpleSearch.java,v $
 Revision 1.0  2002/08/05 00:00:00  dangan
 add to version control
 [change]
     LzssSearchMethod ???C???^?t?F?C?X???X???????????C???^?t?F?C?X???X?B
 [maintenance]
     ?\?[?X????
     ?^?u?p?~
     ???C?Z???X????C??

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

    Constructors
    Constructor
    Description
    SimpleSearch(int DictionarySize, int MaxMatch, int Threshold, byte[] TextBuffer)
    ???????????@?\???p?????V???v???? LzssSearchMethod ???\?z?????B
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    put(int position)
    SimpleSearch ???????@?\???g?p????????? ?}?????\?b?h????????????B
    int
    SimpleSearch ???????@?\???g?p????????????? 0 ???????B
    int
    search(int position, int lastPutPos)
    TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????B
    int
    searchAndPut(int position)
    TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????B
    void
    LzssOutputStream ?? slide() ??TextBuffer?????f?[?^?? DictionarySize ???????????????????????@?\?????f?[?^?? ?????????????????????????????????s???B

    Methods inherited from class java.lang.Object

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

    • SimpleSearch

      public SimpleSearch(int DictionarySize, int MaxMatch, int Threshold, byte[] TextBuffer)
      ???????????@?\???p?????V???v???? LzssSearchMethod ???\?z?????B
      Parameters:
      DictionarySize - ?????T?C?Y
      MaxMatch - ???????v??
      Threshold - ???k?A?????k?????l
      TextBuffer - LZSS???k???{?????????o?b?t?@
  • Method Details

    • put

      public void put(int position)
      SimpleSearch ???????@?\???g?p????????? ?}?????\?b?h????????????B
      Specified by:
      put in interface LzssSearchMethod
      Parameters:
      position - TextBuffer?????f?[?^?p?^?????J?n???u
    • searchAndPut

      public int searchAndPut(int position)
      TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????B
      Specified by:
      searchAndPut in interface LzssSearchMethod
      Parameters:
      position - TextBuffer?????f?[?^?p?^?????J?n???u?B
      Returns:
      ???v?????????????????? LzssOutputStream.createSearchReturn ???????????????????v???u?????v???????????????l?A ???v???????????????????????? LzssOutputStream.NOMATCH?B
      See Also:
    • search

      public int search(int position, int lastPutPos)
      TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????B
      Specified by:
      search in interface LzssSearchMethod
      Parameters:
      position - TextBuffer?????f?[?^?p?^?????J?n???u?B
      lastPutPos - ???????o?^?????f?[?^?p?^?????J?n???u?B
      Returns:
      ???v?????????????????? LzssOutputStream.createSearchReturn ???????????????????v???u?????v???????????????l?A ???v???????????????????????? LzssOutputStream.NOMATCH?B
      See Also:
    • slide

      public void slide()
      LzssOutputStream ?? slide() ??TextBuffer?????f?[?^?? DictionarySize ???????????????????????@?\?????f?[?^?? ?????????????????????????????????s???B
      Specified by:
      slide in interface LzssSearchMethod
    • putRequires

      public int putRequires()
      SimpleSearch ???????@?\???g?p????????????? 0 ???????B
      Specified by:
      putRequires in interface LzssSearchMethod
      Returns:
      ???? 0