//String data = ws.getString();
//ws.clear();
//String rawPage = extractor.htmlPageToText(data, page, "");
//String title = extractor.getTitle();
TikaWrapper tikaWrapper = new TikaWrapper(TikaWrapper.OUTPUT_FORMAT_HTML);
tikaWrapper.process(urlLoader.getStream());
String rawPage = tikaWrapper.getText();
String title = tikaWrapper.getMetaTitle();
ret += "<page_0><![CDATA[" + rawPage + "]]>" + "</page_0>";
ret += "<title_0><![CDATA[" + title + "]]>" + "</title_0>";
//rawPage = extractor.htmlPageToText(data, page, "boilerpipe_article");
//title = extractor.getTitle();
tikaWrapper = new TikaWrapper(TikaWrapper.OUTPUT_FORMAT_TEXT_MAIN_BOILERPIPE_ARTICLE, TikaWrapper.CONTENT_TYPE_HTML);
tikaWrapper.process(urlLoader.getStream());
rawPage = tikaWrapper.getText();
title = tikaWrapper.getMetaTitle();
ret += "<page_1><![CDATA[" + rawPage + "]]>" + "</page_1>";
ret += "<title_1><![CDATA[" + title + "]]>" + "</title_1>";
//rawPage = extractor.htmlPageToText(data, page, "boilerpipe_default");
//title = extractor.getTitle();
tikaWrapper = new TikaWrapper(TikaWrapper.OUTPUT_FORMAT_TEXT_MAIN_BOILERPIPE_DEFAULT, TikaWrapper.CONTENT_TYPE_HTML);
tikaWrapper.process(urlLoader.getStream());
rawPage = tikaWrapper.getText();
title = tikaWrapper.getMetaTitle();
ret += "<page_2><![CDATA[" + rawPage + "]]>" + "</page_2>";
ret += "<title_2><![CDATA[" + title + "]]>" + "</title_2>";
//rawPage = extractor.htmlPageToText(data, page, "boilerpipe_canola");
//title = extractor.getTitle();
tikaWrapper = new TikaWrapper(TikaWrapper.OUTPUT_FORMAT_TEXT_MAIN_BOILERPIPE_CANOLA, TikaWrapper.CONTENT_TYPE_HTML);
tikaWrapper.process(urlLoader.getStream());
rawPage = tikaWrapper.getText();
title = tikaWrapper.getMetaTitle();
ret += "<page_3><![CDATA[" + rawPage + "]]>" + "</page_3>";
ret += "<title_3><![CDATA[" + title + "]]>" + "</title_3>";
//rawPage = extractor.htmlPageToText(data, page, "snacktory");
//title = extractor.getTitle();
tikaWrapper = new TikaWrapper(TikaWrapper.OUTPUT_FORMAT_TEXT_MAIN_SNACKTORY, TikaWrapper.CONTENT_TYPE_HTML);
tikaWrapper.process(urlLoader.getStream());
rawPage = tikaWrapper.getText();
title = tikaWrapper.getMetaTitle();
ret += "<page_4><![CDATA[" + rawPage + "]]>" + "</page_4>";
ret += "<title_4><![CDATA[" + title + "]]>" + "</title_4>";
ret += "</result>";
urlLoader.close();