• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * RangeEncoderToStream
3  *
4  * Authors: Lasse Collin <lasse.collin@tukaani.org>
5  *          Igor Pavlov <http://7-zip.org/>
6  *
7  * This file has been put into the public domain.
8  * You can do whatever you want with this file.
9  */
10 
11 package org.tukaani.xz.rangecoder;
12 
13 import java.io.OutputStream;
14 import java.io.IOException;
15 
16 public final class RangeEncoderToStream extends RangeEncoder {
17     private final OutputStream out;
18 
RangeEncoderToStream(OutputStream out)19     public RangeEncoderToStream(OutputStream out) {
20         this.out = out;
21         reset();
22     }
23 
writeByte(int b)24     void writeByte(int b) throws IOException {
25         out.write(b);
26     }
27 }
28