private void readPackageListFromURL ( String urlpath , URL pkglisturlpath ) throws Fault { try { URL link = pkglisturlpath . toURI ( ) . resolve ( DocPaths . PACKAGE_LIST . getPath ( ) ) . toURL ( ) ; readPackageList ( link . openStream ( ) , urlpath , false ) ; } catch ( URISyntaxException | MalformedURLException exc ) { throw new Fault ( configuration . getText ( "doclet.MalformedURL" , pkglisturlpath . toString ( ) ) , exc ) ; } catch ( IOException exc ) { throw new Fault ( configuration . getText ( "doclet.URL_error" , pkglisturlpath . toString ( ) ) , exc ) ; } }
Fetch the URL and read the package - list file .