/** * Get the content from the file as an InputStream * * @param entry - the file * @return content as an InputStream * @throws ResourceException when downloding a file gails */ protected InputStream getContentAsStream(ClientListEntry entry) throws ResourceException { if(logger.isDebugEnabled()) { logger.debug("Getting content from [" + entry.getUri().getPath() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ } try { return getClient().getContentAsStream(entry); } catch (ClientCommandGetException e) { logger.warn("Underlying File Transfer operation failed [GET]!", e); //$NON-NLS-1$ throw new ResourceException(e); } }