Package jp.gr.java_conf.dangan.util.lha
Class PreLzsDecoder
java.lang.Object
jp.gr.java_conf.dangan.util.lha.PreLzsDecoder
- All Implemented Interfaces:
PreLzssDecoder
-lzs- ?????p PreLzssDecoder?B
-- revision history -- $Log: PreLzsDecoder.java,v $ Revision 1.1 2002/12/06 00:00:00 dangan [maintenance] ?\?[?X???? Revision 1.0 2002/08/05 00:00:00 dangan add to version control [bug fix] -lzs- ?? MaxMatch ?? 17 ???????~???? 16 ????????????????C???B [maintenance] ?\?[?X???? ?^?u?p?~ ???C?Z???X????C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
?u???b?N???????????o???}?????o?????????o?C?g?????????B
InputStream ?? available() ??????A ?}???????o?C?g???????????????Bvoid
close()
?}???o?????X?g???[???? ???}??????????X?g???[????????A ?g?p??????????\?[?X???????????Bint
-lzs-?`???? LZSS???????T?C?Y???????Bint
-lzs-?`???? LZSS?????????v?????????Bint
-lzs-?`???? LZSS?????k?A?????k?????l???????Bvoid
mark
(int readLimit) ???}???????????X?g???[???????????u???}?[?N?????????A reset() ???\?b?h???}?[?N???????_?? ???????????u?? ?????????????????B
InputStream ?? mark() ??????AreadLimit ?????????? ???E?o?C?g???????O???}?[?N???u???????????????\???? ?????????????????}???Bboolean
???}???????????X?g???[???? mark() ?? reset() ?? ?T?|?[?g?????????????Bint
readCode()
-lzs- ?????k?????? 1byte ?? LZSS????k???f?[?^?A ???????????k?R?[?h?????????v?????????????Bint
-lzs- ?????k?????????k?R?[?h?????? ???v???u???????????Bvoid
reset()
???}???????????X?g???[???????????????u???????? mark() ???\?b?h???????o???????????????u???????????B
-
Constructor Details
-
PreLzsDecoder
-lzs- ?????p PreLzssDecoder ???\?z?????B- Parameters:
in
- -lzs- ?`???????k?f?[?^???????????????X?g???[??
-
-
Method Details
-
readCode
-lzs- ?????k?????? 1byte ?? LZSS????k???f?[?^?A ???????????k?R?[?h?????????v?????????????B- Specified by:
readCode
in interfacePreLzssDecoder
- Returns:
- 1byte ?? ????k???f?[?^?????????A ???k?????????k?R?[?h?????????v??
- Throws:
IOException
- ???o???G???[?????????????
-
readOffset
-lzs- ?????k?????????k?R?[?h?????? ???v???u???????????B- Specified by:
readOffset
in interfacePreLzssDecoder
- Returns:
- -lzs- ?????k?????????k?R?[?h?????????v???u
- Throws:
IOException
- ???o???G???[?????????????
-
mark
public void mark(int readLimit) ???}???????????X?g???[???????????u???}?[?N?????????A reset() ???\?b?h???}?[?N???????_?? ???????????u?? ?????????????????B
InputStream ?? mark() ??????AreadLimit ?????????? ???E?o?C?g???????O???}?[?N???u???????????????\???? ?????????????????}???B- Specified by:
mark
in interfacePreLzssDecoder
- Parameters:
readLimit
- ?}?[?N???u???????????E???o?C?g???B ?}???o?C?g?????L?????f?[?^?????? ?????????? reset()?????????????? ?\?????????B- See Also:
-
reset
???}???????????X?g???[???????????????u???????? mark() ???\?b?h???????o???????????????u???????????B- Specified by:
reset
in interfacePreLzssDecoder
- Throws:
IOException
-
(1) mark() ?????? reset() ?????????????????B
(2) ???}???????????X?g???[???? markSupported()?? false ???????????B
(3) ???}???????????X?g???[???? ???o???G???[??????????????B
?????????B
-
markSupported
public boolean markSupported()???}???????????X?g???[???? mark() ?? reset() ?? ?T?|?[?g?????????????B- Specified by:
markSupported
in interfacePreLzssDecoder
- Returns:
- ?X?g???[???? mark() ?? reset() ??
?T?|?[?g?????????? true?B
?T?|?[?g??????????? false?B
-
available
?u???b?N???????????o???}?????o?????????o?C?g?????????B
InputStream ?? available() ??????A ?}???????o?C?g???????????????B- Specified by:
available
in interfacePreLzssDecoder
- Returns:
- ?u???b?N????????????o?????????o?C?g???B
- Throws:
IOException
- ???o???G???[?????????????- See Also:
-
close
?}???o?????X?g???[???? ???}??????????X?g???[????????A ?g?p??????????\?[?X???????????B- Specified by:
close
in interfacePreLzssDecoder
- Throws:
IOException
- ???o???G???[?????????????
-
getDictionarySize
public int getDictionarySize()-lzs-?`???? LZSS???????T?C?Y???????B- Specified by:
getDictionarySize
in interfacePreLzssDecoder
- Returns:
- -lzs-?`???? LZSS???????T?C?Y
-
getMaxMatch
public int getMaxMatch()-lzs-?`???? LZSS?????????v?????????B- Specified by:
getMaxMatch
in interfacePreLzssDecoder
- Returns:
- -lzs-?`???? LZSS?????????v??
-
getThreshold
public int getThreshold()-lzs-?`???? LZSS?????k?A?????k?????l???????B- Specified by:
getThreshold
in interfacePreLzssDecoder
- Returns:
- -lzs-?`???? LZSS?????k?A?????k?????l
-