@Override protected void handleClose() throws IOException { try { super.handleClose(); } finally { nextElement = null; } }
@Override protected void handleClose() throws IOException { try { super.handleClose(); } finally { nextElement = null; } }
@Override protected void handleClose() throws IOException { try { super.handleClose(); } finally { nextElement = null; } }
/** * Calls {@link #handleClose()} upon first call and makes sure this method gets called only once. */ @Override public final void close() throws IOException { if (closed.compareAndSet(false, true)) { handleClose(); } else { handleAlreadyClosed(); } }
/** * Calls {@link #handleClose()} upon first call and makes sure this method gets called only once. */ @Override public final void close() throws IOException { if (closed.compareAndSet(false, true)) { handleClose(); } else { handleAlreadyClosed(); } }
/** * Calls {@link #handleClose()} upon first call and makes sure this method gets called only once. */ @Override public final void close() throws IOException { if (closed.compareAndSet(false, true)) { handleClose(); } else { handleAlreadyClosed(); } }