Examples of endDocument()


Examples of org.jdom.input.SAXHandler.endDocument()

    sh.startDocument();
    sh.startElement
        ("", "temporary-root", "temporary-root", new AttributesImpl());
    myBuffer.emit(sh, (LexicalHandler)sh);
    sh.endElement ("", "temporary-root", "temporary-root");
    sh.endDocument();
    org.jdom.Element temporaryRoot = sh.getDocument().getRootElement();
    XPath xpath = new JDOMXPath("/temporary-root/row[2]");
    org.jdom.Element painter
        = (org.jdom.Element)xpath.selectSingleNode(temporaryRoot);
    String value = painter.getAttribute("title").getValue();
View Full Code Here

Examples of org.jfree.layouting.layouter.feed.InputFeed.endDocument()

    {
      inputFeed.addDocumentAttribute(name, attr);
    }
    else if ("endDocument".equals(method))
    {
      inputFeed.endDocument();
    }
    else if ("endElement".equals(method))
    {
      inputFeed.endElement();
    }
View Full Code Here

Examples of org.jibx.runtime.IMarshallingContext.endDocument()

                    IMarshallingContext mctx = factory.createMarshallingContext();
                    mctx.setIndent(2);
                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                    mctx.setOutput(bos, "UTF-8");
                    ((IMarshallable)object).marshal(mctx);
                    mctx.endDocument();
                   
                    // compare with original input document
                    InputStreamReader brdr = new InputStreamReader
                        (new ByteArrayInputStream(bos.toByteArray()), "UTF-8");
                    InputStreamReader frdr = new InputStreamReader(new FileInputStream(file), encoding);
View Full Code Here

Examples of org.pdf4j.saxon.event.Receiver.endDocument()

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

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

Examples of org.pdf4j.saxon.event.SequenceReceiver.endDocument()

        SequenceReceiver out = c2.getReceiver();

        out.open();
        out.startDocument(0);
        content.process(c2);
        out.endDocument();
        out.close();
        if (resolver != null) {
            try {
                resolver.close(result);
            } catch (TransformerException e) {
View Full Code Here

Examples of org.pdf4j.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 org.pdf4j.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 org.restlet.util.XmlWriter.endDocument()

            Object content) throws IOException {
        XmlWriter xmlWriter = getXmlWriter(writer);
        try {
            xmlWriter.startDocument();
            marshal(xmlWriter, rootTag, content);
            xmlWriter.endDocument(); // calls flush()
        } catch (SAXException e) {
            if (e.getException() instanceof IOException) {
                // e.g. broken tcp connection
                throw (IOException) e.getException()
            } else {
View Full Code Here

Examples of org.serviceconnector.util.XMLDumpWriter.endDocument()

        AppContext.getCacheManager().dump(writer);
        writer.writeComment(" *************** CACHES ********************** ");
        AppContext.getCacheRegistry().dump(writer);
        // end dump
        writer.writeEndElement(); // end of sc-dump
        writer.endDocument();
        fos.close();
        LOGGER.info("SC dump created into file=" + dumpCacheFile);
        return dumpFileName;
      } else {
        LOGGER.error("Creating SC dump file =" + dumpPath + " failed, can not create directory");
View Full Code Here

Examples of org.syrup.helpers.XMLOutput.endDocument()

        for (int i = 0; i < p.length; i++)
        {
            o.output(p[i], h);
        }

        o.endDocument("match", h);

        return p.length;
    }

    /**
 
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.