Package net.sf.basedb.opengrid
Class AbstractSession.CloseResourceOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.sf.basedb.opengrid.AbstractSession.CloseResourceOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
AbstractSession<T extends AbstractHost<?>>
Wrapper around the outputstream so that we can
close the related resource when the stream is closed.
- Since:
- 1.1
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
resource
-
-
Constructor Details
-
CloseResourceOutputStream
CloseResourceOutputStream(OutputStream parent, Closeable resource)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-