All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tukaani.xz.rangecoder.RangeEncoderToStream Maven / Gradle / Ivy

Go to download

This artifact contains the same classes as ${modularized.groupId}%${modularized.artifactId}%${modularized.version} but also a module-info.class

There is a newer version: 1.21.0
Show newest version
/*
 * RangeEncoderToStream
 *
 * Authors: Lasse Collin 
 *          Igor Pavlov 
 *
 * This file has been put into the public domain.
 * You can do whatever you want with this file.
 */

package org.tukaani.xz.rangecoder;

import java.io.OutputStream;
import java.io.IOException;

public final class RangeEncoderToStream extends RangeEncoder {
    private final OutputStream out;

    public RangeEncoderToStream(OutputStream out) {
        this.out = out;
        reset();
    }

    void writeByte(int b) throws IOException {
        out.write(b);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy