eu.unicore.hila.gridftp
Class NonClosingBufferedOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.BufferedOutputStream
eu.unicore.hila.gridftp.NonClosingBufferedOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class NonClosingBufferedOutputStream
- extends BufferedOutputStream
An alternative BufferedOutputStream
that does not close its
underlying Stream.
We use this class, because GridFTPClient.get() closes the OutputStream to
which it writes, but we want to keep control of this stream, as it may be
System.out as well.
- Author:
- bjoernh
02.03.2012 10:47:38
Method Summary |
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonClosingBufferedOutputStream
public NonClosingBufferedOutputStream(OutputStream out)
- Parameters:
out
-
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException
- See Also:
FilterOutputStream.close()
Copyright © 2010-2013 UNICORE. All Rights Reserved.