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

brooklyn.util.stream.IllegalOutputStream 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.OutputStream;

/** output stream which throws if anyone tries to write to it */
public class IllegalOutputStream extends OutputStream {
    @Override public void write(int b) {
        throw new IllegalStateException("should not write to this output stream");
    }
    @Override public void write(byte[] b, int off, int len) {
        throw new IllegalStateException("should not write to this output stream");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy