Package hudson
Class CloseProofOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- hudson.util.DelegatingOutputStream
-
- hudson.CloseProofOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class CloseProofOutputStream extends DelegatingOutputStream
OutputStream
that blocksclose()
method.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class hudson.util.DelegatingOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description CloseProofOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class hudson.util.DelegatingOutputStream
flush, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
CloseProofOutputStream
public CloseProofOutputStream(OutputStream out)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classDelegatingOutputStream
-
-