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 TypeMethodDescriptionvoidput(int position) SimpleSearch ???????@?\???g?p?????�‘???? ?�}?????\?b?h???????????�‘?BintSimpleSearch ???????@?\???g?p?????�‘???????? 0 ???????Bintsearch(int position, int lastPutPos) TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????BintsearchAndPut(int position) TextBuffer ???????????????????f?[?^?p?^?????? position ?????n?????f?[?^?p?^???? ?????????v?????????????????????Bvoidslide()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:
putin 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:
searchAndPutin 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:
searchin 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:
slidein interfaceLzssSearchMethod
-
putRequires
public int putRequires()SimpleSearch ???????@?\???g?p?????�‘???????? 0 ???????B- Specified by:
putRequiresin interfaceLzssSearchMethod- Returns:
- ???? 0
-