public synchronized void close() throws java.io.IOException { if (objCache != null) { if (objCache.release(this)) return; } }
@Override public synchronized void close() throws java.io.IOException { if (cache != null) { if (cache.release(this)) return; } if (null != dodsConnection) { dodsConnection.close(); dodsConnection = null; } }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { if (fileCache.release(this)) return; } try { if (netcdfDataset != null) netcdfDataset.close(); } finally { netcdfDataset = null; } }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { fileCache.release(this); } else { try { if (ncfile != null) ncfile.close(); } finally { ncfile = null; } } }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { if (fileCache.release(this)) return; } try { if (ncd != null) ncd.close(); } finally { ncd = null; } }
public synchronized void close() throws java.io.IOException { if (fileCache != null) { if (fileCache.release(this)) return; } reallyClose(); }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { fileCache.release(this); } else { try { if (ds != null) ds.close(); } finally { ds = null; } } }
public void close() throws IOException { if (fileCache != null) { fileCache.release(this); return; } if (debugLeaks) openFiles.remove(location); if (session != null) { session.close(); session = null; } }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { fileCache.release(this); } else { try { if (ncfile != null) ncfile.close(); } finally { ncfile = null; } } }
@Override public synchronized void close() throws java.io.IOException { if (fileCache != null) { if (fileCache.release(this)) return; } try { if (netcdfDataset != null) netcdfDataset.close(); } finally { netcdfDataset = null; } }
/** * Close all resources (files, sockets, etc) associated with this file. * If the underlying file was acquired, it will be released, otherwise closed. * if isClosed() already, nothing will happen * * @throws java.io.IOException if error when closing */ public synchronized void close() throws java.io.IOException { if (cache != null) { //unlocked = true; cache.release(this); } else { try { if (null != spi) { // log.warn("NetcdfFile.close called for ncfile="+this.hashCode()+" for iosp="+spi.hashCode()); spi.close(); } } finally { spi = null; } } }
/** * Close all resources (files, sockets, etc) associated with this file. * If the underlying file was acquired, it will be released, otherwise closed. * if isClosed() already, nothing will happen * * @throws java.io.IOException if error when closing */ public synchronized void close() throws java.io.IOException { if (cache != null) { if (cache.release(this)) return; } try { if (null != spi) { // log.warn("NetcdfFile.close called for ncfile="+this.hashCode()+" for iosp="+spi.hashCode()); spi.close(); } } finally { spi = null; } }
fileCache.release(this); return;
if (cacheState == 1) { cacheState = 2; if (cache.release(this)) // return true if in the cache, otherwise was opened regular, so must be closed regular return; cacheState = 0; // release failed, bail out
/** * Close all resources (files, sockets, etc) associated with this dataset. * If the underlying file was acquired, it will be released, otherwise closed. */ @Override public synchronized void close() throws java.io.IOException { if (agg != null) { agg.persistWrite(); // LOOK maybe only on real close ?? agg.close(); } if (cache != null) { //unlocked = true; if (cache.release(this)) return; } if (orgFile != null) orgFile.close(); orgFile = null; }
/** * Close all resources (files, sockets, etc) associated with this dataset. * If the underlying file was acquired, it will be released, otherwise closed. */ @Override public synchronized void close() throws java.io.IOException { if (agg != null) agg.persistWrite(); // LOOK maybe only on real close ?? if (cache != null) { //unlocked = true; cache.release(this); } else { if (agg != null) agg.close(); agg = null; if (orgFile != null) orgFile.close(); orgFile = null; } }