Examples of endDocument()


Examples of javax.xml.transform.sax.TemplatesHandler.endDocument()

                final Serializer serializer = broker.getSerializer();
                serializer.reset();
                serializer.setSAXHandlers(handler, null);
                serializer.toSAX(stylesheet);

                handler.endDocument();      
                return handler.getTemplates();

            } catch (final SAXException e) {
                throw new ServletException("A SAX exception occurred while compiling the stylesheet: "
                        + e.getMessage(), e);
View Full Code Here

Examples of javax.xml.transform.sax.TransformerHandler.endDocument()

        SAXTransformerFactory saxtf = (SAXTransformerFactory) TransformerFactory.newInstance();
        TransformerHandler handler = saxtf.newTransformerHandler();
        handler.setResult(new SAXResult(new ASMContentHandler(cw)));
        handler.startDocument();
        cr.accept(new SAXClassAdapter(handler, false), 0);
        handler.endDocument();
       
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        bos.write(cw.toByteArray());

        ClassWriter cw2 = new ClassWriter(0);
View Full Code Here

Examples of net.java.textilej.parser.DocumentBuilder.endDocument()

      if (currentBlock != null && !currentBlock.isClosed()) {
        currentBlock.setClosed(true);
      }
     
      if (asDocument) {
        builder.endDocument();
      }
    } finally {
      builder.setLocator(null);
    }
  }
View Full Code Here

Examples of net.sf.saxon.event.Receiver.endDocument()

                    out.open();
                    out.startDocument(0);

                    content.process(c2);

                    out.endDocument();
                    out.close();

                    root = (DocumentInfo)builder.getCurrentRoot();
                } catch (XPathException e) {
                    e.maybeSetLocation(this);
View Full Code Here

Examples of net.sf.saxon.event.SequenceReceiver.endDocument()

            return null;
        } else {
            SequenceReceiver out = context.getReceiver();
            out.startDocument(0);
            content.process(context);
            out.endDocument();
            return null;
        }
    }

    /**
 
View Full Code Here

Examples of net.sf.saxon.event.TreeReceiver.endDocument()

            tree.startDocument(0);
            for (Iterator<XdmItem> it = value.iterator(); it.hasNext();) {
                XdmItem item = it.next();
                tree.append((Item)item.getUnderlyingValue(), 0, NodeInfo.ALL_NAMESPACES);
            }
            tree.endDocument();
            tree.close();
        } catch (XPathException err) {
            throw new SaxonApiException(err);
        }
    }
View Full Code Here

Examples of net.sf.saxon.tinytree.TinyBuilder.endDocument()

        builder.setPipelineConfiguration(pipe);
        builder.open();
        builder.startDocument(0);
        c2.changeOutputDestination(builder, false, Validation.PRESERVE, null);
        content.process(c2);
        builder.endDocument();
        builder.close();
        DocumentInfo dtdRoot = (DocumentInfo)builder.getCurrentRoot();

        SequenceIterator children = dtdRoot.iterateAxis(Axis.CHILD);
        NodeInfo docType = (NodeInfo)children.next();
View Full Code Here

Examples of net.sf.saxon.tree.TreeBuilder.endDocument()

            builder.graftElement(this);

            builder.endElement();
            builder.endElement();
            builder.endDocument();
            builder.close();

            DocumentImpl newRoot = (DocumentImpl)builder.getCurrentRoot();
            newRoot.graftLocationMap(oldRoot);
            return newRoot;
View Full Code Here

Examples of net.sourceforge.chaperon.process.LexicalProcessor.endDocument()

    // End 'text' element
    lexer.endElement("http://chaperon.sourceforge.net/schema/text/1.0", "text", "text");

    // End document
    lexer.endDocument();
  }

  public static void main(String[] args)
  {
    File lexiconFile = new File(args[0]);
View Full Code Here

Examples of net.sourceforge.gpstools.kml.GpxKMLWriter.endDocument()

                gpx.addWpt(photoPoint);
            }
            /* GpxKMLWriter automatically uses UTF-8 encoding */
            GpxKMLWriter kw = new GpxKMLWriter(out, "GPSDings Pictures", false);
            kw.writeGpx(gpx);
            kw.endDocument();
        } catch (SAXException ex) {
            throw new IOException("SAXException: " + ex.getMessage());
        }
    }

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.