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

net.java.truevfs.comp.inst.InstrumentingInputStream Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package net.java.truevfs.comp.inst;

import java.io.InputStream;
import java.util.Objects;
import javax.annotation.concurrent.Immutable;
import net.java.truecommons.io.DecoratingInputStream;

/**
 * @param   the type of the mediator.
 * @see    InstrumentingOutputStream
 * @author Christian Schlichtherle
 */
@Immutable
public class InstrumentingInputStream>
extends DecoratingInputStream {

    protected final M mediator;

    public InstrumentingInputStream(
            final M mediator,
            final InputStream in) {
        super(in);
        this.mediator = Objects.requireNonNull(mediator);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy