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