Examples of writeStartDocument()


Examples of com.envoisolutions.sxc.util.XoXMLStreamWriter.writeStartDocument()

           
            Boolean frag = (Boolean) getProperty(Marshaller.JAXB_FRAGMENT);
           
            XoXMLStreamWriter w = new XoXMLStreamWriterImpl(xsw);
            if (frag == null || !frag) {
                w.writeStartDocument();
            }
           
            JAXBElement jaxbElement = null;
            if (o instanceof JAXBElement) {
                jaxbElement = (JAXBElement) o;
View Full Code Here

Examples of com.envoisolutions.sxc.util.XoXMLStreamWriterImpl.writeStartDocument()

           
            Boolean frag = (Boolean) getProperty(Marshaller.JAXB_FRAGMENT);
           
            XoXMLStreamWriter w = new XoXMLStreamWriterImpl(xsw);
            if (frag == null || !frag) {
                w.writeStartDocument();
            }
           
            JAXBElement jaxbElement = null;
            if (o instanceof JAXBElement) {
                jaxbElement = (JAXBElement) o;
View Full Code Here

Examples of com.sun.xml.fastinfoset.stax.StAXDocumentSerializer.writeStartDocument()

            } else {
                message.put(Message.CONTENT_TYPE, "application/fastinfoset");
            }
           
            try {
                serializer.writeStartDocument();
            } catch (XMLStreamException e) {
                throw new Fault(e);
            }
            message.getInterceptorChain().add(ENDING);
        }
View Full Code Here

Examples of com.sun.xml.internal.stream.buffer.stax.StreamWriterBufferCreator.writeStartDocument()

    //TODO: bit of redundency on writes of w3c epr, should modularize it
    private static W3CEndpointReference toW3CEpr(MemberSubmissionEndpointReference msEpr) {
        StreamWriterBufferCreator writer = new StreamWriterBufferCreator();
        w3cMetadataWritten = false;
        try {
            writer.writeStartDocument();
            writer.writeStartElement(AddressingVersion.W3C.getPrefix(),
                    "EndpointReference", AddressingVersion.W3C.nsUri);
            writer.writeNamespace(AddressingVersion.W3C.getPrefix(),
                    AddressingVersion.W3C.nsUri);
            //write wsa:Address
View Full Code Here

Examples of com.sun.xml.internal.txw2.output.IndentingXMLStreamWriter.writeStartDocument()

    IndentingXMLStreamWriter xmlWriter;
    try
    {
      xmlWriter = new IndentingXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(writer));
      xmlWriter.writeStartDocument("UTF-8", "1.0");
      xmlWriter.setDefaultNamespace("http://plugins.intellij.net/revu");
      xstreamDataHolder.put(ReviewExternalizerXmlImpl.CONTEXT_KEY_REVIEW, null);
      xstream.marshal(review, new XppDriver().createWriter(writer), xstreamDataHolder);
    }
    catch (XMLStreamException e)
View Full Code Here

Examples of com.sun.xml.stream.buffer.stax.StreamWriterBufferCreator.writeStartDocument()

                                                            List<Element> metadata, String wsdlAddress, String wsdlTargetNamespace, @Nullable Collection<EPRExtension> extns, @Nullable Map<QName, String> attributes) {

            StreamWriterBufferCreator writer = new StreamWriterBufferCreator();

            try {
                writer.writeStartDocument();
                writer.writeStartElement(version.getPrefix(),"EndpointReference", version.nsUri);
                writer.writeNamespace(version.getPrefix(),version.nsUri);

                writePartialEPRInfoset(writer, version, address, referenceParameters, service, port, portType,
                        metadata,wsdlAddress, wsdlTargetNamespace, attributes);
View Full Code Here

Examples of de.odysseus.staxon.json.JsonXMLStreamWriter.writeStartDocument()

   */
  @Test
  public void testArray() throws Exception {
    StringWriter result = new StringWriter();
    JsonXMLStreamWriter writer = createXmlStreamWriter(result, new QName("alice"));
    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeStartArray("bob");
    writer.writeStartElement("bob");
    writer.writeCharacters("charlie");
    writer.writeEndElement();
View Full Code Here

Examples of de.odysseus.staxon.xml.SimpleXMLStreamWriter.writeStartDocument()

   */
  @Test
  public void testTextContent() throws Exception {
    StringWriter result = new StringWriter();
    XMLStreamWriter writer = new SimpleXMLStreamWriter(result, false);
    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeCharacters("bob");
    writer.writeEndElement();
    writer.writeEndDocument();
    writer.close();
View Full Code Here

Examples of java.io.OutputStreamWriter.writeStartDocument()

    }
    WebSession webSession = request.getSession(false);
    XMLOutputFactory factory = XMLOutputFactory.newInstance();
    XMLStreamWriter writer = factory.createXMLStreamWriter(os);
    writer.writeStartDocument();
    writer.writeStartElement("sc-web");
    writer.writeStartElement("head");
    // write url path
    String url = request.getURL();
    if (url != null) {
View Full Code Here

Examples of javanet.staxutils.IndentingXMLStreamWriter.writeStartDocument()

        IndentingXMLStreamWriter serializer = new IndentingXMLStreamWriter( factory.createXMLStreamWriter( writer ) );
        if ( supportWindowsLineEndings )
        {
            serializer.setNewLine( serializer.getLineSeparator() );
        }
        serializer.writeStartDocument( model.getModelEncoding(), "1.0" );
        writeModel( model, "project", serializer );
        serializer.writeEndDocument();
    } //-- void write(Writer, Model)

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