public HTMLRSSFeedFinder(InputStream streamToParse, HTMLRSSFeedFinderListener listener) { setHTMLRSSFeedFinderListener(listener); parse(streamToParse); if (feedFinderListener != null) { feedFinderListener.feedFinderComplete(rssfeeds); } }
public HTMLRSSFeedFinder(File fileToParse, HTMLRSSFeedFinderListener listener) { try { BufferedInputStream bis = new BufferedInputStream(new FileInputStream(fileToParse)); parse(bis); bis.close(); if (feedFinderListener != null) { feedFinderListener.feedFinderComplete(rssfeeds); } } catch (FileNotFoundException e) { if (LOGGING) e.printStackTrace(); } catch (IOException e) { if (LOGGING) e.printStackTrace(); } }