org.hudsonci.utils.io
Class NoCloseOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.hudsonci.utils.io.DelegatingOutputStream
          extended by org.hudsonci.utils.io.NoCloseOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class NoCloseOutputStream
extends DelegatingOutputStream

Prevents target output stream from being closed.

Since:
2.1.0
Author:
Jason Dillon

Constructor Summary
NoCloseOutputStream(OutputStream out)
           
 
Method Summary
 void close()
           
 
Methods inherited from class org.hudsonci.utils.io.DelegatingOutputStream
flush, getDelegate, setDelegate, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCloseOutputStream

public NoCloseOutputStream(OutputStream out)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class DelegatingOutputStream
Throws:
IOException


Copyright © 2004-2011 Hudson. All Rights Reserved.