public ArrayList extract ( String url ) throws IOException { if ( debug ) System . out . println ( " URLextract=" + url ) ; baseURL = new URL ( url ) ; InputStream in = baseURL . openStream ( ) ; InputStreamReader r = new InputStreamReader ( filterTag ( in ) , CDM . UTF8 ) ; HTMLEditorKit . ParserCallback callback = new CallerBacker ( ) ; urlList = new ArrayList ( ) ; wantURLS = true ; wantText = false ; parser . parse ( r , callback , false ) ; return urlList ; }
Extract all A - HREF contained URLS from the given URL and return in List