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

brooklyn.util.stream.InputStreamSupplier Maven / Gradle / Ivy

Go to download

Utility classes and methods developed for Brooklyn but not dependendent on Brooklyn or much else

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.util.stream;

import java.io.IOException;
import java.io.InputStream;

import com.google.common.io.InputSupplier;

public class InputStreamSupplier implements InputSupplier {

    final InputStream target;
    
    public InputStreamSupplier(InputStream target) {
        this.target = target;
    }

    @Override
    public InputStream getInput() throws IOException {
        return target;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy