@ Override public List < String > setTargetHostsFromLineByLineText ( String sourcePath , HostsSourceType sourceType ) throws TargetHostsLoadException { List < String > targetHosts = new ArrayList < String > ( ) ; try { String content = getContentFromPath ( sourcePath , sourceType ) ; targetHosts = setTargetHostsFromString ( content ) ; } catch ( IOException e ) { throw new TargetHostsLoadException ( "IEException when reading " + sourcePath , e ) ; } return targetHosts ; }
get target hosts from line by line .