Hi,
I'm wondering if it would be good to have GridCoverageReader implement
AutoCloseable, so that it can be used in "try with resources", e.g.:

try(GridCoverageReaader reader = new GeotiffReader(myFile)) {
   ...
}

The annoyance is that GridCoverageReader exposes a dispose() method,
instead of a close() one.
I guess it would not hurt to have both, and/or deprecate dispose in the
process?

Also wondering if the same treatment should be applied to other interfaces
(e.g., DataAccess)

Anyways... just thinking out loud here, I don't have a mandate to work in
this
direction, just wondering.

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to