Examples of startDocument()


Examples of org.apache.cocoon.serialization.Serializer.startDocument()

                  try {
                       selector = (ComponentSelector)manager.lookup(Serializer.ROLE + "Selector");
                       serializer = (Serializer)selector.select(serializerName);
                       oStream = ws.getOutputStream();
                       serializer.setOutputStream(oStream);
                         serializer.startDocument();
                       DOMStreamer streamer = new DOMStreamer(serializer);
                       streamer.stream(frag);
                         serializer.endDocument();
                  } catch (ComponentException e) {
                    throw new ProcessingException("Unable to lookup serializer.", e);
View Full Code Here

Examples of org.apache.cocoon.xml.ContentHandlerWrapper.startDocument()

                TextSerializer serializer = new TextSerializer();
                StringWriter writer = new StringWriter();
                serializer.setOutputCharStream(writer);

                ContentHandlerWrapper contentHandler = new ContentHandlerWrapper(serializer, serializer);
                contentHandler.startDocument();

                // TODO is root element necessary for TextSerializer?
                contentHandler.startElement(JXTemplateGenerator.NS, elementName, elementName, EMPTY_ATTRS);
                Invoker.execute(contentHandler, objectModel, executionContext, macroContext, namespaces, this.getNext(), this
                        .getEndInstruction());
View Full Code Here

Examples of org.apache.cocoon.xml.XMLConsumer.startDocument()

                                       DOMUtil.getValueOfNode(transformations.item(k)),
                                       new Parameters());
                            xslT.setConsumer(nextConsumer);
                            nextConsumer = xslT;
                        }
                        nextConsumer.startDocument();
                    }
                    boolean includeFragment = true;
                    boolean handlesParameters = DOMUtil.getValueAsBooleanOf(copletConf, "configuration/handlesParameters", true);
                    String size = p.getParameter("size", "max");
                    includeFragment = size.equals("max");
View Full Code Here

Examples of org.apache.cocoon.xml.dom.DOMBuilder.startDocument()

        if (this.getLogger().isDebugEnabled() == true) {
            this.getLogger().debug("BEGIN startRecording");
        }
        DOMBuilder builder = new DOMBuilder();
        this.addRecorder(builder);
        builder.startDocument();
        builder.startElement("", "cocoon", "cocoon", new AttributesImpl());

        this.sendStartPrefixMapping();

        if (this.getLogger().isDebugEnabled() == true) {
View Full Code Here

Examples of org.apache.commons.jelly.XMLOutput.startDocument()

        if ( name == null ) {
            throw new MissingAttributeException( "name" );
        }
        XMLOutput newOutput = createXMLOutput();
        try {
            newOutput.startDocument();
            invokeBody(newOutput);
            newOutput.endDocument();
        }
        finally {
            newOutput.close();
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.xml.serialize.XMLSerializer.startDocument()

    private void generateSource() {
        try {
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            XMLSerializer ser = new XMLSerializer(out, new OutputFormat("xml", "UTF-8", true));
            ser.startDocument();
            AttributesImpl attrs = new AttributesImpl();
            attrs.addAttribute(null, null, ATTR_VERSION, "CDATA", String.valueOf(version));
            ser.startElement(null, null, "workspaceFilter", attrs);
            for (PathFilterSet set: filterSets) {
                attrs = new AttributesImpl();
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.ppr.PPRResponseWriter.startDocument()

      PartialPageUtils.forceOptimizedPPR(_context);
    }

    try
    {
      pprWriter.startDocument();

      // Note that PanelPartialRootRenderer will perform partial visit for the optimized PPR
      // if it is enabled
      _renderChildren(_context, viewRoot);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.ppr.XmlResponseWriter.startDocument()

      httpResponse.setHeader("Pragma", "no-cache");
      httpResponse.setHeader("Expires", "-1");
    }
   
    XmlResponseWriter xrw = new XmlResponseWriter(writer, "utf-8");
    xrw.startDocument();
   
    xrw.startElement("partial-response", null);
    xrw.startElement("noop", null);
    xrw.endElement("noop");     
    xrw.endElement("partial-response");
View Full Code Here

Examples of org.apache.shale.test.mock.MockResponseWriter.startDocument()

    //ResponseWriter responseWriter = facesContext.getResponseWriter();
    StringWriter stringWriter = new StringWriter();
    MockResponseWriter responseWriter = new MockResponseWriter(stringWriter, "text/html", "UTF8");
    facesContext.setResponseWriter(responseWriter);

    responseWriter.startDocument();
    responseWriter.startElement("span", input);
    compositeRenderer.encodeAttributeParameters(facesContext, input);
    responseWriter.endElement("span");
    responseWriter.endDocument();
   
View Full Code Here

Examples of org.apache.tika.sax.XHTMLContentHandler.startDocument()

            DefaultStyledDocument sd = new DefaultStyledDocument();
            new RTFEditorKit().read(stream, sd, 0);

            XHTMLContentHandler xhtml =
                new XHTMLContentHandler(handler, metadata);
            xhtml.startDocument();
            xhtml.element("p", sd.getText(0, sd.getLength()));
            xhtml.endDocument();
        } catch (BadLocationException e) {
            throw new TikaException("Error parsing an RTF document", e);
        } catch (InternalError e) {
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.