@Override protected void cleanup() throws IOException { try { flush(); } finally { for (int i = 0; i < buffer.length; i++) { if (buffer[i] == null) { break; } buffer[i].close(); buffer[i] = null; } super.cleanup(); } }
public void close() throws IOException { if (dataStore != null) { // clean up dataStore.closeSafe(rs); dataStore.closeSafe(st); dataStore.releaseConnection(cx, featureSource.getState()); } cleanup(); }
public void close() throws IOException { if ( dataStore != null ) { //clean up dataStore.closeSafe( rs ); dataStore.closeSafe( st ); dataStore.releaseConnection(cx, featureSource.getState() ); } else { //means we are already closed... should we throw an exception? } cleanup(); }
public void close() throws IOException { if ( dataStore != null ) { //clean up dataStore.closeSafe( rs ); dataStore.closeSafe( st ); dataStore.releaseConnection(cx, featureSource.getState() ); } else { //means we are already closed... should we throw an exception? } cleanup(); }