List of usage examples for com.itextpdf.text.io FileChannelRandomAccessSource close
public void close() throws IOException
From source file:com.ephesoft.dcma.util.FileUtils.java
License:Open Source License
/** * Closes the FileChannelRandomAccessSource. * //ww w . j a v a 2s . c o m * @param fileChannelRandomAccessSource {@link com.itextpdf.text.io.FileChannelRandomAccessSource} to be closed. */ public static void closeFileChannelRandomAccessSource( final FileChannelRandomAccessSource fileChannelRandomAccessSource) { try { if (null != fileChannelRandomAccessSource) { fileChannelRandomAccessSource.close(); } } catch (final IOException e) { LOGGER.error(EphesoftStringUtil.concatenate( "Exception occured while closing fileChannelRandomAccessSource ", e.getMessage(), e)); } }