Example #1
0
 @Override
 public void close() throws IOException {
   IOException priorE = null;
   try {
     super.close();
   } catch (IOException ioe) {
     priorE = ioe;
   } finally {
     IOUtils.closeWhileHandlingException(priorE, writer);
   }
 }
Example #2
0
 @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);
     }
   }
 }
Example #3
0
 /** Random-access methods */
 @Override
 public void seek(long pos) throws IOException {
   super.seek(pos);
   file.seek(pos);
 }