Package jp.gr.java_conf.dangan.util.lha
Class PostLz5Encoder
- java.lang.Object
-
- jp.gr.java_conf.dangan.util.lha.PostLz5Encoder
-
- All Implemented Interfaces:
PostLzssEncoder
public class PostLz5Encoder extends java.lang.Object implements PostLzssEncoder
-lz5- ???k?p PostLzssEncoder?B-- revision history -- $Log: PostLz5Encoder.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 [bug fix] -lz5- ?? MaxMatch ?? 16 ?????? 18 ???????B flush() ???o?????????f?[?^???o????????????????????C???B [maintenance] ?\?[?X???? ?^?u?p?~ ???C?Z???X????C??
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dangan $
-
-
Constructor Summary
Constructors Constructor Description PostLz5Encoder(java.io.OutputStream out)
-lz5- ???k?p PostLzssEncoder ???\?z?????B
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
?}???o???X?g???[?????A???}???????o???X?g???[????????A ?g?p??????????\?[?X???J???????Bvoid
flush()
?}?? PostLzssEncoder ???o?b?t?@?????O????????? ?o?????\???f?[?^???o?????? OutputStream ???o?????A ?o?????? OutputStream ?? flush() ?????B
?}?????\?b?h???o???s???\?? ????15?o?C?g???f?[?^?? ?o?b?t?@?????O???????? ?o????????B
?}?????\?b?h?????k????????????????Bint
getDictionarySize()
-lz5-?`???? LZSS???????T?C?Y???????Bint
getMaxMatch()
-lz5-?`???? LZSS?????????v?????????Bint
getThreshold()
-lz5-?`???? 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
-
-
-
Method Detail
-
writeCode
public void writeCode(int code) throws java.io.IOException
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:
java.io.IOException
- ???o???G???[?????????????
-
writeOffset
public void writeOffset(int offset)
LZSS ?????k?????????k?R?[?h?????????v???u???????}???B- Specified by:
writeOffset
in interfacePostLzssEncoder
- Parameters:
offset
- LZSS ?????k?????????k?R?[?h?????????v???u
-
flush
public void flush() throws java.io.IOException
?}?? PostLzssEncoder ???o?b?t?@?????O????????? ?o?????\???f?[?^???o?????? OutputStream ???o?????A ?o?????? OutputStream ?? flush() ?????B
?}?????\?b?h???o???s???\?? ????15?o?C?g???f?[?^?? ?o?b?t?@?????O???????? ?o????????B
?}?????\?b?h?????k????????????????B- Specified by:
flush
in interfacePostLzssEncoder
- Throws:
java.io.IOException
- ???o???G???[?????????????- See Also:
PostLzssEncoder.flush()
-
close
public void close() throws java.io.IOException
?}???o???X?g???[?????A???}???????o???X?g???[????????A ?g?p??????????\?[?X???J???????B- Specified by:
close
in interfacePostLzssEncoder
- Throws:
java.io.IOException
- ???o???G???[?????????????
-
getDictionarySize
public int getDictionarySize()
-lz5-?`???? LZSS???????T?C?Y???????B- Specified by:
getDictionarySize
in interfacePostLzssEncoder
- Returns:
- -lz5-?`???? LZSS???????T?C?Y
-
getMaxMatch
public int getMaxMatch()
-lz5-?`???? LZSS?????????v?????????B- Specified by:
getMaxMatch
in interfacePostLzssEncoder
- Returns:
- -lz5-?`???? LZSS?????????v??
-
getThreshold
public int getThreshold()
-lz5-?`???? LZSS?????k?A?????k?????l???????B- Specified by:
getThreshold
in interfacePostLzssEncoder
- Returns:
- -lz5-?`???? LZSS?????k?A?????k?????l
-
-