/** * Does nothing - the underlying source is not closed */ public void close() throws java.io.IOException { source.close(); getBufferStart = -1; getBufferEnd = -1; } }
/** * Does nothing - the underlying source is not closed */ public void close() throws java.io.IOException { source.close(); getBufferStart = -1; getBufferEnd = -1; } }
/** * Closes the underlying source. * * @throws java.io.IOException */ public void close() throws java.io.IOException { isBack = false; byteSource.close(); }
/** * {@inheritDoc} */ public void close() throws java.io.IOException { source.close(); } }
/** * Closes the underlying source. * * @throws java.io.IOException */ public void close() throws java.io.IOException { isBack = false; byteSource.close(); }
@Override public void close() throws IOException { synchronized (lockObj) { source.close(); } } }
/** * {@inheritDoc} */ public void close() throws java.io.IOException { source.close(); } }
@Override public void close() throws IOException { synchronized (lockObj) { source.close(); } } }
/** * {@inheritDoc} * For now, close the source that is no longer being used. In the future, we may implement an MRU that allows multiple pages to be opened at a time */ @Override protected void sourceReleased(IRandomAccessSource source) throws java.io.IOException { IRandomAccessSource old = mru.enqueue(source); if (old != null) old.close(); }
/** * {@inheritDoc} * For now, close the source that is no longer being used. In the future, we may implement an MRU that allows multiple pages to be opened at a time */ @Override protected void sourceReleased(IRandomAccessSource source) throws java.io.IOException { IRandomAccessSource old = mru.enqueue(source); if (old != null) old.close(); }
/** * {@inheritDoc} * <br/> * Closes all of the underlying sources. */ public void close() throws java.io.IOException { java.io.IOException firstThrownIOExc = null; for (SourceEntry entry : sources) { try { entry.source.close(); } catch (java.io.IOException ex) { if (firstThrownIOExc == null) { firstThrownIOExc = ex; } else { Logger logger = LoggerFactory.getLogger(GroupedRandomAccessSource.class); logger.error(LogMessageConstant.ONE_OF_GROUPED_SOURCES_CLOSING_FAILED, ex); } } catch (Exception ex) { Logger logger = LoggerFactory.getLogger(GroupedRandomAccessSource.class); logger.error(LogMessageConstant.ONE_OF_GROUPED_SOURCES_CLOSING_FAILED, ex); } } if (firstThrownIOExc != null) { throw firstThrownIOExc; } }
/** * {@inheritDoc} * <br/> * Closes all of the underlying sources. */ public void close() throws java.io.IOException { java.io.IOException firstThrownIOExc = null; for (SourceEntry entry : sources) { try { entry.source.close(); } catch (java.io.IOException ex) { if (firstThrownIOExc == null) { firstThrownIOExc = ex; } else { Logger logger = LoggerFactory.getLogger(GroupedRandomAccessSource.class); logger.error(LogMessageConstant.ONE_OF_GROUPED_SOURCES_CLOSING_FAILED, ex); } } catch (Exception ex) { Logger logger = LoggerFactory.getLogger(GroupedRandomAccessSource.class); logger.error(LogMessageConstant.ONE_OF_GROUPED_SOURCES_CLOSING_FAILED, ex); } } if (firstThrownIOExc != null) { throw firstThrownIOExc; } }