source: josm/trunk/src/org/tukaani/xz/rangecoder/RangeEncoderToStream.java@ 13350

Last change on this file since 13350 was 13350, checked in by stoecker, 7 years ago

see #15816 - add XZ support

File size: 603 bytes
Line 
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
11package org.tukaani.xz.rangecoder;
12
13import java.io.OutputStream;
14import java.io.IOException;
15
16public final class RangeEncoderToStream extends RangeEncoder {
17 private final OutputStream out;
18
19 public RangeEncoderToStream(OutputStream out) {
20 this.out = out;
21 reset();
22 }
23
24 void writeByte(int b) throws IOException {
25 out.write(b);
26 }
27}
Note: See TracBrowser for help on using the repository browser.