167168169170171172173174175176177
} finally { if (in != null) { in.close(); } if(reader != null){ reader.dispose(); } } } @Test(expected = UnsupportedOperationException.class)
212213214215216217218219220221222
if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, e.getLocalizedMessage(), e); } try { reader.dispose(); } catch (Exception e) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, e.getLocalizedMessage(), e); }
359360361362363364365366367368369
} } if (reader != null) try { reader.dispose(); } catch (Exception e) { if (LOGGER.isLoggable(Level.FINE)){ LOGGER.log(Level.FINE, e.getLocalizedMessage(), e); } }
492493494495496497498499500501502
} } if (reader != null) { try { reader.dispose(); } catch (Throwable t) { } } }
636637638639640641642643644645646
LOGGER.log(Level.SEVERE, e.getMessage(), e); } } finally { if (reader != null) try { reader.dispose(); } catch (Throwable t) { } if (stream != null){ try {
412413414415416417418419420421422
} } catch (Throwable e) { throw new IllegalArgumentException(e); } finally{ if (reader != null){ reader.dispose(); } } } }
953954955956957958959960961962963
if (request.getReadType() != ReadType.JAI_IMAGEREAD && inStream != null) { inStream.close(); } } finally { if (request.getReadType() != ReadType.JAI_IMAGEREAD && reader != null) { reader.dispose(); } } } }
10421043104410451046104710481049105010511052
catch (Throwable ee) { } finally{ if(reader!=null) reader.dispose(); } throw new IllegalArgumentException(e); } catch (IOException e) {
10581059106010611062106310641065106610671068
} catch (Throwable ee) { } finally{ if(reader!=null) reader.dispose(); } throw new IllegalArgumentException(e); } }
507508509510511512513514515516517
throw new DataSourceException("Unable to find a CRS for this coverage, using a default one: " + crs.toWKT()); } } setResolutionInfo(reader); reader.dispose(); // creating the raster manager rasterManager = new RasterManager(this); }