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 |
|
---|
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 |
|
---|
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.