public Iterator < Record > getSource ( ) { String strURL = this . getProperty ( "source" ) ; if ( strURL == null ) return null ; Reader reader = null ; try { URL url = new URL ( strURL ) ; InputStream inputStream = url . openStream ( ) ; InputStreamReader inStream = new InputStreamReader ( inputStream ) ; reader = inStream ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } catch ( MalformedURLException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } Record record = this . getMergeRecord ( ) ; SaxHtmlHandler handler = this . getSaxHandler ( record ) ; return new HtmlSource ( reader , record , handler ) ; }
GetSource Method .