Package gluebooster.basic.text.html

Examples of gluebooster.basic.text.html.MapContent2HtmlDocument


  @SuppressWarnings("unchecked")
@Test
  public void testRun() throws Exception
  {
        MapContent2HtmlDocument sourceGenerator = new MapContent2HtmlDocument();
        HtmlDocument2DoxiaConverter converter = new HtmlDocument2DoxiaConverter();
       
        converter.setSink(new LoggingSink());
        HashMap<String, String> demoMap = new HashMap<String, String>();
        demoMap.put("key1", "value1");
        demoMap.put("key2", "value2");
       
        converter.setHtml(CollectionFactory.getDefault().createMap(HTML.Tag.HTML, sourceGenerator.value(demoMap)));
        
        converter.run();
  }
View Full Code Here


{
  @SuppressWarnings("unchecked")
@Test
  public void testRun() throws Exception
  {
        MapContent2HtmlDocument sourceGenerator = new MapContent2HtmlDocument();
        Html2DoxiaConverter converter = new Html2DoxiaConverter();
       
        converter.setSink(new LoggingSink());
        HashMap<String, String> demoMap = new HashMap<String, String>();
        demoMap.put("key1", "value1");
        demoMap.put("key2", "value2");
        
        converter.setHtml(CollectionFactory.getDefault().createMap(HTML.Tag.HTML, sourceGenerator.value(demoMap)));
       
        converter.run();
  }
View Full Code Here

TOP

Related Classes of gluebooster.basic.text.html.MapContent2HtmlDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.