Class PostLh5Encoder

  • All Implemented Interfaces:
    PostLzssEncoder

    public class PostLh5Encoder
    extends java.lang.Object
    implements PostLzssEncoder
    -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder?B
     -- revision history --
     $Log: PostLh5Encoder.java,v $
     Revision 1.4  2002/12/08 00:00:00  dangan
     [change]
         ?N???X?? ?? PostLh5EncoderCombo ???? PostLh5Encoder ?????X?B
    
     Revision 1.3  2002/12/06 00:00:00  dangan
     [maintenance]
         ?\?[?X????
    
     Revision 1.2  2002/12/01 00:00:00  dangan
     [change]
         flush() ???????????? 
         ???}?????? OutputStream ??flush() ??????????????X?B
    
     Revision 1.1  2002/12/01 00:00:00  dangan
     [bug fix] 
         writeOutGroup ?????[?J?????? offLenFreq ???g?p??????????
         ????????????? this.offLenFreq ???g?p????????B
     [maintenance]
         PostLh5Encoder ?????????p????C???X?^???X?t?B?[???h
         buffer, codeFreq, offLenFreq ?p?~
         ?\?[?X????
    
     Revision 1.0  2002/07/31 00:00:00  dangan
     add to version control
     [improvement]
         DivideNum ???}?????????????????????????p?^?[?????????????}???B
     [maintenance]
         ?\?[?X????
         ?^?u?p?~
         ???C?Z???X????C??
    
     
    Version:
    $Revision: 1.4 $
    Author:
    $Author: dangan $
    • Constructor Summary

      Constructors 
      Constructor Description
      PostLh5Encoder​(java.io.OutputStream out)
      -lh5- ???k?p PostLzssEncoder ???\?z?????B
      ?o?b?t?@?T?C?Y?????f?t?H???g?l???g?p???????B
      PostLh5Encoder​(java.io.OutputStream out, java.lang.String method)
      -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
      ?o?b?t?@?T?C?Y?????f?t?H???g?l???g?p???????B
      PostLh5Encoder​(java.io.OutputStream out, java.lang.String method, int BufferSize)
      -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
      PostLh5Encoder​(java.io.OutputStream out, java.lang.String method, int BlockNum, int BlockSize, int DivideNum)
      -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
      1???? BlockSize?o?C?g ?? BlockNum ?????u???b?N???g?????????? ?????o???r?b?g??????????\????o???????B ?g?????????? ?S?u???b?N?? DivideNum + 1 ???????????????????? ?S?p?^?[?????????????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???????B
      void 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
      int getDictionarySize()
      ?}?? PostLh5Encoder ??????LZSS???????T?C?Y???????B
      int getMaxMatch()
      ?}?? PostLh5Encoder ??????LZSS?????????v?????????B
      int getThreshold()
      ?}?? PostLh5Encoder ??????LZSS?????k?A?????k?????l???????B
      void writeCode​(int code)
      1byte ?? LZSS????k???f?[?^?????????A LZSS ?????k?????????k?R?[?h?????????v?????????}???B
      void writeOffset​(int offset)
      LZSS ?????k?????????k?R?[?h?????????v???u???????}???B
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PostLh5Encoder

        public PostLh5Encoder​(java.io.OutputStream out)
        -lh5- ???k?p PostLzssEncoder ???\?z?????B
        ?o?b?t?@?T?C?Y?????f?t?H???g?l???g?p???????B
        Parameters:
        out - ???k?f?[?^?????????? OutputStream
      • PostLh5Encoder

        public PostLh5Encoder​(java.io.OutputStream out,
                              java.lang.String method)
        -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
        ?o?b?t?@?T?C?Y?????f?t?H???g?l???g?p???????B
        Parameters:
        out - ???k?f?[?^?????????? OutputStream
        method - ???k?@???????????
           CompressMethod.LH4
           CompressMethod.LH5
           CompressMethod.LH6
           CompressMethod.LH7
           ???????????w???????B
        Throws:
        java.lang.IllegalArgumentException - method ?????L???O??????
      • PostLh5Encoder

        public PostLh5Encoder​(java.io.OutputStream out,
                              java.lang.String method,
                              int BufferSize)
        -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
        Parameters:
        out - ???k?f?[?^?????????? OutputStream
        method - ???k?@???????????
           CompressMethod.LH4
           CompressMethod.LH5
           CompressMethod.LH6
           CompressMethod.LH7
           ???????????w???????B
        BufferSize - LZSS???k?f?[?^???????????N?? ?o?b?t?@???T?C?Y
        Throws:
        java.lang.IllegalArgumentException -
           (1) method ?????L???O??????
           (2) BufferSize ??????????????
           ????????
      • PostLh5Encoder

        public PostLh5Encoder​(java.io.OutputStream out,
                              java.lang.String method,
                              int BlockNum,
                              int BlockSize,
                              int DivideNum)
        -lh4-, -lh5-, -lh6-, -lh7- ???k?p PostLzssEncoder ???\?z?????B
        1???? BlockSize?o?C?g ?? BlockNum ?????u???b?N???g?????????? ?????o???r?b?g??????????\????o???????B ?g?????????? ?S?u???b?N?? DivideNum + 1 ???????????????????? ?S?p?^?[?????????????B
        Parameters:
        out - ???k?f?[?^?????????? OutputStream
        method - ???k?@???????????
           CompressMethod.LH4
           CompressMethod.LH5
           CompressMethod.LH6
           CompressMethod.LH7
           ???????????w???????B
        BlockNum - ?u???b?N??
        BlockSize - 1?u???b?N???o?C?g??
        DivideNum - ??????????
        Throws:
        java.lang.IllegalArgumentException -
           (1) CompressMethod ?????L???O??????
           (2) BlockNum ?? 0??????????
           (3) BlockSize ??????????????
           (4) DivideNum ?? 0????????????ABlockNum??????????
           ??????????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 interface PostLzssEncoder
        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 interface PostLzssEncoder
        Parameters:
        offset - LZSS ?????k?????????k?R?[?h?????????v???u
      • flush

        public void flush()
                   throws java.io.IOException
        ?}?? 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 interface PostLzssEncoder
        Throws:
        java.io.IOException - ???o???G???[?????????????
        See Also:
        PostLzssEncoder.flush(), BitOutputStream.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 interface PostLzssEncoder
        Throws:
        java.io.IOException - ???o???G???[?????????????
      • getDictionarySize

        public int getDictionarySize()
        ?}?? PostLh5Encoder ??????LZSS???????T?C?Y???????B
        Specified by:
        getDictionarySize in interface PostLzssEncoder
        Returns:
        ?}?? PostLh5Encoder ??????LZSS???????T?C?Y
      • getMaxMatch

        public int getMaxMatch()
        ?}?? PostLh5Encoder ??????LZSS?????????v?????????B
        Specified by:
        getMaxMatch in interface PostLzssEncoder
        Returns:
        ?}?? PostLh5Encoder ??????LZSS?????????v??
      • getThreshold

        public int getThreshold()
        ?}?? PostLh5Encoder ??????LZSS?????k?A?????k?????l???????B
        Specified by:
        getThreshold in interface PostLzssEncoder
        Returns:
        ?}?? PostLh5Encoder ??????LZSS?????k?A?????k?????l