public InputStream getInputStream ( String pathToFile ) throws IOException { File f = new File ( pathToFile ) ; return getInputStream ( f ) ; }
Get an InputStream for given file path . The caller is responsible for closing the stream or otherwise a resource leak can occur .