Package br.com.caelum.tubaina.parser

Examples of br.com.caelum.tubaina.parser.RegexConfigurator


  private SingleHtmlGenerator generator;
  private File directory;

  @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);
View Full Code Here


  private KindleParser parser;

  @Before
  public void setUp() throws IOException {
    RegexConfigurator configurator = new RegexConfigurator();
    List<RegexTag> tags = configurator.read("/regex.properties", "/kindle.properties");
    this.parser = new KindleParser(tags);
  }
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

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

    Parser parser = new HtmlParser(new RegexConfigurator().read("/regex.properties", "/html.properties"));
    ArrayList<String> dirTree = new ArrayList<String>();
    dirTree.add("livro");
    dirTree.add("livro/01-capitulo");
    dirTree.add("livro/01-capitulo/01-primeira");
    dirTree.add("livro/01-capitulo/02-segunda");
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.parser.RegexConfigurator

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.