be.fedict.eid.applet.service.signer
Class CloseActionOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
be.fedict.eid.applet.service.signer.CloseActionOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class CloseActionOutputStream
- extends org.apache.commons.io.output.ProxyOutputStream
An output stream proxy implementation that allows us to run something when
the stream has been closed. Useful to perform resource cleanup tasks.
- Author:
- Frank Cornelis
Method Summary |
void |
close()
|
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream |
flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseActionOutputStream
public CloseActionOutputStream(OutputStream proxy,
Runnable closeAction)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class org.apache.commons.io.output.ProxyOutputStream
- Throws:
IOException
Copyright © 2008-2012 FedICT. All Rights Reserved.