Пример #1
0
 /**
  * Close this output stream.
  *
  * @throws IOException If there is an exception in the underlying encoder.
  */
 public void close(BitOutput out) throws IOException {
   // must code EOF to allow decoding to halt
   arithmeticEncoder.encode(ArithCodeModel.EOF, out);
   // to allow arithmetic encoder to output buffered bits
   arithmeticEncoder.close(out);
 }