Package jp.gr.java_conf.dangan.util.lha
Class PostLh1Encoder
java.lang.Object
jp.gr.java_conf.dangan.util.lha.PostLh1Encoder
- All Implemented Interfaces:
PostLzssEncoder
-lh1- ???k?p?? PostLzssEncoder?B
-- revision history -- $Log: PostLh1Encoder.java,v $ Revision 1.1 2002/12/01 00:00:00 dangan [maintenance] ?\?[?X???? Revision 1.0 2002/07/31 00:00:00 dangan add to version control [maintenance] ?\?[?X???? ?^?u?p?~ ???C?Z???X????C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
?}???o???X?g???[?????A???}???????o???X?g???[????????A ?g?p??????????\?[?X???????????Bvoid
flush()
?}?? PostLzssEncoder ???o?b?t?@?????O????????? ?S???? 8?r?b?g?P?????f?[?^???o?????? OutputStream ???o?????A ?o?????? OutputStream ?? flush() ?????B
?}?????\?b?h?????k????????????????Bint
-lh1-?`???? LZSS???????T?C?Y???????Bint
-lh1-?`???? LZSS?????????v?????????Bint
-lh1-?`???? LZSS?????k?A?????k?????l???????Bvoid
writeCode
(int code) 1byte ?? LZSS????k???f?[?^?????????A LZSS ?????k?????????k?R?[?h?????????v?????????}???Bvoid
writeOffset
(int offset) LZSS ?????k?????????k?R?[?h?????????v???u???????}???B
-
Constructor Details
-
PostLh1Encoder
-lh1- ???k?p PostLzssEncoder ???\?z?????B- Parameters:
out
- ???k?f?[?^???????????o???X?g???[??
-
-
Method Details
-
writeCode
1byte ?? LZSS????k???f?[?^?????????A LZSS ?????k?????????k?R?[?h?????????v?????????}???B- Specified by:
writeCode
in interfacePostLzssEncoder
- Parameters:
code
- 1byte ?? LZSS????k???f?[?^?????????A LZSS ?????k?????????k?R?[?h?????????v??- Throws:
IOException
- ???o???G???[?????????????
-
writeOffset
LZSS ?????k?????????k?R?[?h?????????v???u???????}???B- Specified by:
writeOffset
in interfacePostLzssEncoder
- Parameters:
offset
- LZSS ?????k?????????k?R?[?h?????????v???u- Throws:
IOException
- ???o???G???[?????????????
-
flush
?}?? PostLzssEncoder ???o?b?t?@?????O????????? ?S???? 8?r?b?g?P?????f?[?^???o?????? OutputStream ???o?????A ?o?????? OutputStream ?? flush() ?????B
?}?????\?b?h?????k????????????????B- Specified by:
flush
in interfacePostLzssEncoder
- Throws:
IOException
- ???o???G???[?????????????- See Also:
-
close
?}???o???X?g???[?????A???}???????o???X?g???[????????A ?g?p??????????\?[?X???????????B- Specified by:
close
in interfacePostLzssEncoder
- Throws:
IOException
- ???o???G???[?????????????
-
getDictionarySize
public int getDictionarySize()-lh1-?`???? LZSS???????T?C?Y???????B- Specified by:
getDictionarySize
in interfacePostLzssEncoder
- Returns:
- -lh1-?`???? LZSS???????T?C?Y
-
getMaxMatch
public int getMaxMatch()-lh1-?`???? LZSS?????????v?????????B- Specified by:
getMaxMatch
in interfacePostLzssEncoder
- Returns:
- -lz5-?`???? LZSS?????????v??
-
getThreshold
public int getThreshold()-lh1-?`???? LZSS?????k?A?????k?????l???????B- Specified by:
getThreshold
in interfacePostLzssEncoder
- Returns:
- -lh1-?`???? LZSS?????k?A?????k?????l
-