Examples of writeIndex()


Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.writeIndex()

        }

        String htmlBibliography = generateHtmlBibliography(outputDir);
        bookContent.append(htmlBibliography);
        bookContent = resolveReferencesOf(bookContent);
        bookRoot.writeIndex(bookContent);
    }

    private String generateIntroductionParts(Book book, TubainaHtmlDir bookRoot) {
        return new IntroductionChaptersToKindle(parser, freeMarkerConfig, bookRoot)
                .generateIntroductionChapters(book.getIntroductionChapters());
View Full Code Here

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.writeIndex()

        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));

        int chapterIndex = 1;
        int currentDir = 1;
        for (Chapter chapter : book.getChapters()) {
            int curdir = currentDir++;
View Full Code Here

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.writeIndex()

   
    bookContent = resolveReferencesOf(bookContent);
   
    bookContent.append(generateFooter());

    bookRoot.writeIndex(bookContent);
  }
 
    private StringBuffer resolveReferencesOf(StringBuffer bookContent) {
        List<ReferenceReplacer> replacers = new ArrayList<ReferenceReplacer>();
       
View Full Code Here

Examples of com.bbn.openmap.dataAccess.shape.output.ShxOutputStream.writeIndex()

                                    + ".shp"));
                            int[][] indexData = pos.writeGeometry(list);

                            ShxOutputStream xos = new ShxOutputStream(new FileOutputStream(path
                                    + ".shx"));
                            xos.writeIndex(indexData,
                                    list.getType(),
                                    list.getExtents());

                            DbfOutputStream dos = new DbfOutputStream(new FileOutputStream(path
                                    + ".dbf"));
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.writeIndex()

      // write the packindex
      fos = new FileOutputStream(tmpIdx);
      FileChannel idxChannel = fos.getChannel();
      OutputStream idxStream = Channels.newOutputStream(idxChannel);
      try {
        pw.writeIndex(idxStream);
      } finally {
        idxChannel.force(true);
        idxStream.close();
        fos.close();
      }
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.writeIndex()

      }

      os = dest.writeFile(pathIdx, monitor, wt + "..idx"); //$NON-NLS-1$
      try {
        os = new SafeBufferedOutputStream(os);
        writer.writeIndex(os);
      } finally {
        os.close();
      }

      // Record the pack at the start of the pack info list. This
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.writeIndex()

        pack.setReadOnly();

        idx = nameFor(odb, name, ".idx");
        out = new SafeBufferedOutputStream(new FileOutputStream(idx));
        try {
          pw.writeIndex(out);
        } finally {
          out.close();
        }
        idx.setReadOnly();
      } finally {
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.writeIndex()

    pw.writePack(NullProgressMonitor.INSTANCE,
        NullProgressMonitor.INSTANCE, packOS);
    packOS.close();
    File idxFile = new File(packdir, "pack-" + id + ".idx");
    FileOutputStream idxOS = new FileOutputStream(idxFile);
    pw.writeIndex(idxOS);
    idxOS.close();
    pw.release();
    return PackIndex.open(idxFile);
  }
View Full Code Here

Examples of org.eclipse.jgit.internal.storage.pack.PackWriter.writeIndex()

      // write the packindex
      FileChannel idxChannel = new FileOutputStream(tmpIdx).getChannel();
      OutputStream idxStream = Channels.newOutputStream(idxChannel);
      try {
        pw.writeIndex(idxStream);
      } finally {
        idxChannel.force(true);
        idxStream.close();
        idxChannel.close();
      }
View Full Code Here

Examples of org.eclipse.jgit.storage.pack.PackWriter.writeIndex()

      }

      os = dest.writeFile(pathIdx, monitor, wt + "..idx");
      try {
        os = new SafeBufferedOutputStream(os);
        writer.writeIndex(os);
      } finally {
        os.close();
      }

      // Record the pack at the start of the pack info list. This
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.