Hi,

On Wed, Aug 4, 2010 at 12:27 PM,  <sebastian.petzelber...@aformatik.com> wrote:
> Wanted is a convenience method that hides the opening and closing of a file
> connection. This would avoid redundancy and failures by accidently not
> closing the file connection. I have implemented this before, but now I want
> to use apache commons io and I am asking why this isn't there. I could
> contribute this.

Not sure if this is exactly what you're looking for, but have you seen
the AutoCloseInputStream [1] class?

[1] 
http://commons.apache.org/io/api-release/org/apache/commons/io/input/AutoCloseInputStream.html

BR,

Jukka Zitting

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to