/** * Returns an input stream to use to read the content of the file. * * @return The InputStream to access this file's content. * @throws FileSystemException if an error occurs. */ public InputStream getInputStream() throws FileSystemException { /* * VFS-210 if (!getType().hasContent()) { throw new FileSystemException("vfs.provider/read-not-file.error", * name); } if (!isReadable()) { throw new FileSystemException("vfs.provider/read-not-readable.error", name); } */ // Get the raw input stream try { return doGetInputStream(); } catch (final org.apache.commons.vfs2.FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileSystemException exc) { throw exc; } catch (final Exception exc) { throw new FileSystemException("vfs.provider/read.error", fileName, exc); } }
/** * Returns an input stream to use to read the content of the file. * * @return The InputStream to access this file's content. * @throws FileSystemException if an error occurs. */ public InputStream getInputStream() throws FileSystemException { /* * VFS-210 if (!getType().hasContent()) { throw new FileSystemException("vfs.provider/read-not-file.error", * name); } if (!isReadable()) { throw new FileSystemException("vfs.provider/read-not-readable.error", name); } */ // Get the raw input stream try { return doGetInputStream(); } catch (final org.apache.commons.vfs2.FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileSystemException exc) { throw exc; } catch (final Exception exc) { throw new FileSystemException("vfs.provider/read.error", fileName, exc); } }
/** * Returns an input stream to use to read the content of the file. * * @return The InputStream to access this file's content. * @throws FileSystemException if an error occurs. */ public InputStream getInputStream() throws FileSystemException { /* * VFS-210 if (!getType().hasContent()) { throw new FileSystemException("vfs.provider/read-not-file.error", * name); } if (!isReadable()) { throw new FileSystemException("vfs.provider/read-not-readable.error", name); } */ // Get the raw input stream try { return doGetInputStream(); } catch (final org.apache.commons.vfs2.FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileNotFoundException exc) { throw new org.apache.commons.vfs2.FileNotFoundException(fileName, exc); } catch (final FileSystemException exc) { throw exc; } catch (final Exception exc) { throw new FileSystemException("vfs.provider/read.error", fileName, exc); } }