Package br.com.caelum.tubaina.io

Examples of br.com.caelum.tubaina.io.ResourceManipulatorFactory


        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)
                .createTubainaDir(temp);
        introductionChaptersToKindle = new IntroductionChaptersToKindle(parser, cfg, bookRoot);
    }
View Full Code Here


        this.ifdefs = data.getIfdefs();
        configureFreemarker();
    }

    public void generate(Book book, File outputDir) throws IOException {
        ResourceManipulatorFactory kindleResourceManipulatorFactory = new KindleResourceManipulatorFactory();
        TubainaHtmlDir bookRoot = new TubainaKindleIO(templateDir, kindleResourceManipulatorFactory)
                .createTubainaDir(outputDir);
       
        StringBuffer bookContent = generateHeader(book);
       
View Full Code Here

        configureFreemarker();
    }

    public void generate(Book book, File directory) throws IOException {

        ResourceManipulatorFactory htmlResourceManipulatorFactory = new HtmlResourceManipulatorFactory();
        TubainaHtmlDir bookRoot = new TubainaHtmlIO(templateDir, htmlResourceManipulatorFactory)
                .createTubainaDir(directory, book);
        List<String> dirTree = createDirTree(book, directory);
        StringBuffer toc = new BookToTOC().generateTOC(book, cfg, dirTree, parser);
        bookRoot.writeIndex(fixPaths(toc));
View Full Code Here

  public void generate(Book book, File outputDir) throws IOException {
    StringBuffer bookContent = generateHeader(book);
   
    bookContent.append(new SingleHtmlTOCGenerator(book, cfg).generateTOC());
   
    ResourceManipulatorFactory htmlResourceManipulatorFactory = new HtmlResourceManipulatorFactory();
   
    TubainaHtmlDir bookRoot = new TubainaHtmlIO(templateDir, htmlResourceManipulatorFactory).createTubainaDir(outputDir, book);

    for (Chapter c : book.getChapters()) {
      StringBuffer chapterContent = generateChapter(book, c);
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.io.ResourceManipulatorFactory

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.