mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
public void write(byte b[], int off, int len) throws IOException {
if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
throw new IndexOutOfBoundsException();
for (int i = 0 ; i < len ; i++) {
write(b[off + i]);
}
}
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2793 71c3de6d-444a-0410-be80-ed276b4c234a
19 lines
373 B
Java
19 lines
373 B
Java
package hudson;
|
|
|
|
import hudson.util.DelegatingOutputStream;
|
|
|
|
import java.io.OutputStream;
|
|
|
|
/**
|
|
* {@link OutputStream} that blocks {@link #close()} method.
|
|
* @author Kohsuke Kawaguchi
|
|
*/
|
|
public class CloseProofOutputStream extends DelegatingOutputStream {
|
|
public CloseProofOutputStream(OutputStream out) {
|
|
super(out);
|
|
}
|
|
|
|
public void close() {
|
|
}
|
|
}
|