private synchronized void closeChild() { if (--childCount == 0 && closed) { file.closeAndDeleteSilently(); file = null; } }
/** * Close the result list and delete the temporary file. */ public void close() { if (file != null) { file.autoDelete(); file.closeAndDeleteSilently(); file = null; rowBuff = null; } }
@Override public synchronized void close() { if (closed) { return; } closed = true; if (parent != null) { parent.closeChild(); } else if (file != null) { if (childCount == 0) { file.closeAndDeleteSilently(); file = null; } } }