Examples of DocumentReader


Examples of org.apache.fop.tools.DocumentReader

        StreamRenderer streamRenderer = new StreamRenderer(_stream, _renderer);
        _treeBuilder.setStreamRenderer(streamRenderer);

        try {
            DocumentInputSource source = new DocumentInputSource(document);
            DocumentReader reader = new DocumentReader();
            reader.setContentHandler(_treeBuilder);
            reader.parse(source);
        } catch (SAXException e) {
            throw new FOPException(e);
        }
        catch (IOException e) {
            throw new FOPException(e);
View Full Code Here

Examples of org.apache.fop.tools.DocumentReader

    public synchronized void render(Document document)
    throws FOPException {

        try {
            DocumentInputSource source = new DocumentInputSource(document);
            DocumentReader reader = new DocumentReader();
            reader.setContentHandler(getContentHandler());
            reader.parse(source);
        } catch (SAXException e) {
            throw new FOPException(e);
        }
        catch (IOException e) {
            throw new FOPException(e);
View Full Code Here

Examples of org.apache.fop.tools.DocumentReader

     * Build the formatting object tree using the given DOM Document
     */
    public synchronized void render(Document document)
                throws FOPException {
         DocumentInputSource source = new DocumentInputSource(document);
         DocumentReader reader = new DocumentReader();
         render(reader, source);
    }
View Full Code Here

Examples of org.apache.fop.tools.DocumentReader

    public synchronized void buildFOTree(Document document)
  throws FOPException
    {
  try {
      DocumentInputSource source = new DocumentInputSource(document);
      DocumentReader reader = new DocumentReader();
      reader.setContentHandler(_treeBuilder);
      reader.parse(source);
  } catch (SAXException e) {
            throw new FOPException(e);
  } catch (IOException e) {
            throw new FOPException(e);
  }
View Full Code Here

Examples of org.apache.fop.tools.DocumentReader

     * Build the formatting object tree using the given DOM Document
     */
    public synchronized void render(Document document)
    throws FOPException {
         DocumentInputSource source = new DocumentInputSource(document);
         DocumentReader reader = new DocumentReader();
         render(reader, source);
    }
View Full Code Here

Examples of org.apache.fop.tools.DocumentReader

    public synchronized void buildFOTree(Document document)
  throws FOPException
    {
  try {
      DocumentInputSource source = new DocumentInputSource(document);
      DocumentReader reader = new DocumentReader();
      reader.setContentHandler(_treeBuilder);
      reader.parse(source);
  } catch (SAXException e) {
            throw new FOPException(e);
  } catch (IOException e) {
            throw new FOPException(e);
  }
View Full Code Here

Examples of org.eclipse.help.internal.dynamic.DocumentReader

          .getValue();

      // create a toc for site
      URL fileUrl = Activator.getInstance().getBundle().getEntry(
          "toc_template.xml");
      DocumentReader reader = new DocumentReader();
      try {
        InputStream in = fileUrl.openStream();
        if (in != null) {
          Toc toc = (Toc) reader.read(in);
          toc.setLabel(siteDiplayName);
          SiteToc siteToc = new SiteToc(toc, versionMap);
          TocContribution contribution = new TocContribution();
          contribution.setCategoryId(siteName);
          contribution.setContributorId(Activator.getInstance()
View Full Code Here

Examples of org.eclipse.help.internal.dynamic.DocumentReader

  }

  @SuppressWarnings("restriction")
  private TocContribution parse(TocFile tocFile) {
    try {
      DocumentReader reader = new DocumentReader();
      InputStream in = tocFile.getInputStream();
      if (in != null) {
        Toc toc = (Toc) reader.read(in);
        in.close();
        TocContribution contribution = new TocContribution();

        // Wrap the parsed toc to modify the href path with some prefix.
        contribution.setToc(new TocWrapper(tocFile.getID(), toc));
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.document.DocumentReader

  public HTMLDocumentCharsetDetector() {
    super();
  }

  public void set(IDocument document) {
    set(new DocumentReader(document, 0));


  }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.document.DocumentReader

  }

  private IContentDescription getContentDescription(IDocument doc) {
    if (doc == null)
      return null;
    DocumentReader reader = new DocumentReader(doc);
    return getContentDescription(reader);
  }
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.