RangeEncoderToBuffer
Date: 2017-02-08

org.tukaani.xz.rangecoder

## Class RangeEncoderToBuffer

- java.lang.Object
- - org.tukaani.xz.rangecoder.RangeCoder
  - - org.tukaani.xz.rangecoder.RangeEncoder
    - - org.tukaani.xz.rangecoder.RangeEncoderToBuffer

-     public final class RangeEncoderToBuffer
      extends RangeEncoder

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RangeEncoderToBuffer(int bufSize)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `finish()`
    `int` | `getPendingSize()`
    `void` | `reset()`
    `void` | `write(java.io.OutputStream out)`

    - ### Methods inherited from class org.tukaani.xz.rangecoder.RangeEncoder

      `encodeBit, encodeBitTree, encodeDirectBits, encodeReverseBitTree, getBitPrice, getBitTreePrice, getDirectBitsPrice, getReverseBitTreePrice`

    - ### Methods inherited from class org.tukaani.xz.rangecoder.RangeCoder

      `initProbs`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RangeEncoderToBuffer

          public RangeEncoderToBuffer(int bufSize)

  - ### Method Detail

    - #### reset

          public void reset()

      Overrides:
        `reset` in class `RangeEncoder`

    - #### getPendingSize

          public int getPendingSize()

      Overrides:
        `getPendingSize` in class `RangeEncoder`

    - #### finish

          public int finish()

      Overrides:
        `finish` in class `RangeEncoder`

    - #### write

          public void write(java.io.OutputStream out)
                     throws java.io.IOException

      Throws:
        `java.io.IOException`