Package br.com.caelum.tubaina.parser.html.desktop

Examples of br.com.caelum.tubaina.parser.html.desktop.HtmlParser


    public void setUp() throws IOException {
        Configuration cfg = new Configuration();
        cfg.setDirectoryForTemplateLoading(new File(TubainaBuilder.DEFAULT_TEMPLATE_DIR, "kindle"));
        cfg.setObjectWrapper(new BeansWrapper());

        Parser parser = new HtmlParser(new RegexConfigurator().read("/regex.properties",
                "/kindle.properties"));

        partToKindle = new PartToKindle(parser, cfg, new ArrayList<String>());
    }
View Full Code Here


        Configuration cfg = new Configuration();
        File templateDir = new File(TubainaBuilder.DEFAULT_TEMPLATE_DIR, "kindle/");
        cfg.setDirectoryForTemplateLoading(templateDir);
        cfg.setObjectWrapper(new BeansWrapper());

        Parser parser = new HtmlParser(new RegexConfigurator().read("/regex.properties",
                "/html.properties"));
       
        ResourceManipulatorFactory kindleResourceManipulatorFactory = new KindleResourceManipulatorFactory();
        File temp = new File("tmp");
        TubainaHtmlDir bookRoot = new TubainaKindleIO(templateDir, kindleResourceManipulatorFactory)
View Full Code Here

    @Before
    public void setUp() throws IOException {
        RegexConfigurator configurator = new RegexConfigurator();
        List<RegexTag> tags = configurator.read("/regex.properties", "/html.properties");
        HtmlParser parser = new HtmlParser(tags);

        File path = new File("src/test/resources");
        ResourceLocator.initialize(path);

        TubainaBuilderData data = new TubainaBuilderData(false,
View Full Code Here

  public void setUp() throws IOException {
    Configuration cfg = new Configuration();
    cfg.setDirectoryForTemplateLoading(new File(TubainaBuilder.DEFAULT_TEMPLATE_DIR, "kindle"));
    cfg.setObjectWrapper(new BeansWrapper());

    Parser parser = new HtmlParser(new RegexConfigurator().read("/regex.properties", "/kindle.properties"));
    chapterToString = new ChapterToKindle(parser, cfg);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.parser.html.desktop.HtmlParser

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.