private void addEntry ( final Path pathToFile , final URL resource ) throws IOException { final Path parent = pathToFile . getParent ( ) ; if ( parent != null ) { addFolder ( parent ) ; } try ( InputStream inputStream = resource . openStream ( ) ) { Files . copy ( inputStream , pathToFile ) ; } }
Creates an entry under the specifeid path with the content from the provided resource .