Menu

#19 Make readers, writers and tokenizers Closeable

2.0.0-beta-1
closed
None
5
2012-09-16
2011-01-07
John Gibson
No

The main IO interfaces, ICsvReader, ICsvWriter, and ITokenizer all define a close() method that closes the underlying stream. This method is identical to the one defined in the standard Java interface java.io.Closeable. Changing the SuperCSV interfaces to extend Closeable will allow these objects to be used with utility close methods, like Commons IO's closeQuietly(Closeable).

Discussion

  • John Gibson

    John Gibson - 2011-01-07

    A patch to make the IO interfaces implement Closeable.

     
  • James Bassett

    James Bassett - 2011-11-14

    This will be available in the upcoming release. When Java 7 is mainstream we could look at using AutoCloseable, but I think we'll be targeting Java 5 for a while ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.