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