commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: [IO] encapsulating open/close
Date Wed, 04 Aug 2010 14:12:44 GMT
Hi,

On Wed, Aug 4, 2010 at 12:27 PM,  <Sebastian.Petzelberger@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message