/** * {@inheritDoc} * Cleans the mapped bytebuffers and closes the channel */ @Override public void close() throws java.io.IOException { try { super.close(); } finally { try { channel.close(); } catch (Exception ex) { Logger logger = LoggerFactory.getLogger(PagedChannelRandomAccessSource.class); logger.error(LogMessageConstant.FILE_CHANNEL_CLOSING_FAILED, ex); } } }
/** * {@inheritDoc} * Cleans the mapped bytebuffers and closes the channel */ @Override public void close() throws java.io.IOException { try { super.close(); } finally { try { channel.close(); } catch (Exception ex) { Logger logger = LoggerFactory.getLogger(PagedChannelRandomAccessSource.class); logger.error(LogMessageConstant.FILE_CHANNEL_CLOSING_FAILED, ex); } } }