commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <>
Subject [jira] Commented: (IO-122) Helper classes for controlling closing of streams
Date Fri, 04 Jan 2008 04:52:33 GMT


Jukka Zitting commented on IO-122:

Added the finalizer in revision 608744.

> Helper classes for controlling closing of streams
> -------------------------------------------------
>                 Key: IO-122
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Streams/Writers
>            Reporter: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.4
>         Attachments: IO-122.patch
> Java API docs are typically not very clear on whether a component that accepts an input
or output stream will close the stream. This can easily lead to cases where streams are either
prematurely closed (which is typically easy to detect) or where an unclosed stream will unnecessarily
consume system resources.
> The attached patch adds a set of helper classes that allow applications to better control
streams even when working with components that don't clearly define whether they close streams
or not. The added classes are:
> See the javadocs in the patch for more details and typical use cases. I've included "@since
1.4" tags in the javadocs in hope that this patch could be included in the next release.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message