[ 
https://issues.apache.org/jira/browse/IO-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186966#comment-17186966
 ] 

Gary D. Gregory commented on IO-685:
------------------------------------

We welcome PRs on GitHub, with unit tests please.

> LineReader to implement AutoCloseable
> -------------------------------------
>
>                 Key: IO-685
>                 URL: https://issues.apache.org/jira/browse/IO-685
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.7
>            Reporter: Andrea Rombaldi
>            Priority: Minor
>             Fix For: 3.x, 2.8.0
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> org.apache.commons.io.LineReader should implement the AutoCloseable interface 
> in order to allow the use of try-with-resources statement such as in the 
> following example:
> {{try (final LineIterator itr = new LineIterator(new 
> FileReader("c:/temp/readme.txt"))) {}}
>  {{  while (itr.hasNext()) {}}
>  {{    System.out.println(itr.next());}}
>     }
> }
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to