Examples of writeEndDocument()


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

            if (jaxbElement != null) {
                w.writeEndElement();
            }
           
            if (frag == null || !frag) {
                w.writeEndDocument();
            }
        } catch (Exception e) {
            if (e instanceof JAXBException) {
                throw (JAXBException) e;
            } else if (e instanceof RuntimeException) {
View Full Code Here

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

            if (jaxbElement != null) {
                w.writeEndElement();
            }
           
            if (frag == null || !frag) {
                w.writeEndDocument();
            }
        } catch (Exception e) {
            if (e instanceof JAXBException) {
                throw (JAXBException) e;
            } else if (e instanceof RuntimeException) {
View Full Code Here

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

            xsw.writeStartDocument();
            xsw.writeStartElement(rootElement);
            for (Object o : t)
                m.marshal(o, xsw);
            xsw.writeEndElement();
            xsw.writeEndDocument();
            xsw.flush();
        } catch (XMLStreamException cause) {
            throw ThrowHelper.withInitCause(cause,
                    new IOException()
                    );           
View Full Code Here

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

                }

                break;
            }
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.flush();

            return writer.getXMLStreamBuffer();
        } catch (XMLStreamException e) {
            throw new WebServiceException(e);
View Full Code Here

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

                    for (Element e : elements)
                        DOMUtil.serializeNode(e, writer);
                }

                writer.writeEndElement();
                writer.writeEndDocument();
                writer.flush();

                return writer.getXMLStreamBuffer();
            } catch (XMLStreamException e) {
                throw new WebServiceException(e);
View Full Code Here

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

    writer.writeStartElement("bob");
    writer.writeCharacters("david");
    writer.writeEndElement();
    writer.writeEndArray();
    writer.writeEndElement();
    writer.writeEndDocument();
    writer.close();
    Assert.assertEquals("{\"bob\":[\"charlie\",\"david\"]}", result.toString());
  }

View Full Code Here

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

    XMLStreamWriter writer = new SimpleXMLStreamWriter(result, false);
    writer.writeStartDocument();
    writer.writeStartElement("alice");
    writer.writeCharacters("bob");
    writer.writeEndElement();
    writer.writeEndDocument();
    writer.close();
    Assert.assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?><alice>bob</alice>", result.toString());
  }
 
  /**
 
View Full Code Here

Examples of java.io.OutputStreamWriter.writeEndDocument()

    writer.writeStartElement("body");
    this.writeSystem(writer);
    this.loadBody(writer, request);
    writer.writeEndElement(); // close body tag
    writer.writeEndElement(); // close root tag sc-web
    writer.writeEndDocument();
    writer.close();
  }

  /**
   * Write system.
View Full Code Here

Examples of javanet.staxutils.IndentingXMLStreamWriter.writeEndDocument()

        {
            serializer.setNewLine( serializer.getLineSeparator() );
        }
        serializer.writeStartDocument( model.getModelEncoding(), "1.0" );
        writeModel( model, "project", serializer );
        serializer.writeEndDocument();
    } //-- void write(Writer, Model)

    /**
     * Method writeBranch
     *
 
View Full Code Here

Examples of javax.xml.stream.XMLStreamWriter.writeEndDocument()

        writer.writeStartDocument();
       
        SourceType st = new SourceType();
        st.writeObject(s, new ElementWriter(writer), new MessageContext());
       
        writer.writeEndDocument();
    }
   
    public void testStreamSource() throws Exception
    {
        StreamSource s = new StreamSource(getResourceAsStream("test.xml"));
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.