@Override public void close() throws IOException { IOException priorE = null; try { super.close(); } catch (IOException ioe) { priorE = ioe; } finally { IOUtils.closeWhileHandlingException(priorE, writer); } }
@Override public void close() throws IOException { parent.onIndexOutputClosed(this); // only close the file if it has not been closed yet if (isOpen) { IOException priorE = null; try { super.close(); } catch (IOException ioe) { priorE = ioe; } finally { isOpen = false; IOUtils.closeWhileHandlingException(priorE, file); } } }
/** Random-access methods */ @Override public void seek(long pos) throws IOException { super.seek(pos); file.seek(pos); }