public void close() throws IOException { persistWrite(); }
public void close() throws IOException { persistWrite(); closeDatasets(); }
public void close() throws IOException { persistWrite(); closeDatasets(); }
/** * 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; } }
/** * 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; } }