Package jp.gr.java_conf.dangan.util.lha
Class SimpleSearch
java.lang.Object
jp.gr.java_conf.dangan.util.lha.SimpleSearch
- All Implemented Interfaces:
LzssSearchMethod
???????????@?\???p????
LzssSearchMethod ???????V???v?????????B
?????@?\???p?????????A ?????????@?\???p????????????~?????x????A ??????????????????????????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
ConstructorsConstructorDescriptionSimpleSearch
(int DictionarySize, int MaxMatch, int Threshold, byte[] TextBuffer) ???????????@?\???p?????V???v???? LzssSearchMethod ???\?z?????B -
Method Summary
Modifier and TypeMethodDescriptionvoid
put
(int position) SimpleSearch ???????@?\???g?p????????? ?}?????\?b?h????????????Bint
SimpleSearch ???????@?\???g?p????????????? 0 ???????Bint
search
(int position, int lastPutPos) TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????Bint
searchAndPut
(int position) TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????Bvoid
slide()
LzssOutputStream ?? slide() ??TextBuffer?????f?[?^?? DictionarySize ???????????????????????@?\?????f?[?^?? ?????????????????????????????????s???B
-
Constructor Details
-
SimpleSearch
public SimpleSearch(int DictionarySize, int MaxMatch, int Threshold, byte[] TextBuffer) ???????????@?\???p?????V???v???? LzssSearchMethod ???\?z?????B- Parameters:
DictionarySize
- ?????T?C?YMaxMatch
- ???????v??Threshold
- ???k?A?????k?????lTextBuffer
- LZSS???k???{?????????o?b?t?@
-
-
Method Details
-
put
public void put(int position) SimpleSearch ???????@?\???g?p????????? ?}?????\?b?h????????????B- Specified by:
put
in interfaceLzssSearchMethod
- 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 interfaceLzssSearchMethod
- 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 interfaceLzssSearchMethod
- Parameters:
position
- TextBuffer?????f?[?^?p?^?????J?n???u?BlastPutPos
- ???????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 interfaceLzssSearchMethod
-
putRequires
public int putRequires()SimpleSearch ???????@?\???g?p????????????? 0 ???????B- Specified by:
putRequires
in interfaceLzssSearchMethod
- Returns:
- ???? 0
-