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
public class SimpleSearch extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidput(int position)SimpleSearch ???????@?\???g?p????????? ?}?????\?b?h????????????BintputRequires()SimpleSearch ???????@?\???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 Detail
-
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 Detail
-
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:
LzssOutputStream.createSearchReturn(int,int),LzssOutputStream.NOMATCH
-
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:
LzssOutputStream.createSearchReturn(int,int),LzssOutputStream.NOMATCH
-
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
-
-