Examples of writeEndElement()


Examples of org.codehaus.stax2.XMLStreamWriter2.writeEndElement()

            while ((count = fis.read(buffer)) != -1) {
                md.update(buffer, 0, count);
                sw.writeBinary(buffer, 0, count);
            }
            fis.close();
            sw.writeEndElement(); // file
            sw.writeStartElement("checksum");
            sw.writeBinaryAttribute("", "", "value", md.digest());
            sw.writeEndElement(); // checksum
        }
        sw.writeEndElement(); // files
View Full Code Here

Examples of org.codehaus.stax2.XMLStreamWriter2.writeEndElement()

            }
            fis.close();
            sw.writeEndElement(); // file
            sw.writeStartElement("checksum");
            sw.writeBinaryAttribute("", "", "value", md.digest());
            sw.writeEndElement(); // checksum
        }
        sw.writeEndElement(); // files
        sw.writeEndDocument();
        sw.close();
    }
View Full Code Here

Examples of org.codehaus.stax2.XMLStreamWriter2.writeEndElement()

            sw.writeEndElement(); // file
            sw.writeStartElement("checksum");
            sw.writeBinaryAttribute("", "", "value", md.digest());
            sw.writeEndElement(); // checksum
        }
        sw.writeEndElement(); // files
        sw.writeEndDocument();
        sw.close();
    }
}
View Full Code Here

Examples of org.codehaus.stax2.typed.TypedXMLStreamWriter.writeEndElement()

        sw.writeStartDocument();
        sw.writeStartElement("root");
        sw.writeIntAttribute(null, null, "attr", -900);
        sw.writeInt(123);
        sw.writeEndElement();
        sw.writeEndDocument();
        sw.close();

        Element root = doc.getDocumentElement();
View Full Code Here

Examples of org.coode.xml.XMLWriter.writeEndElement()

        XMLWriter xmlWriter = new XMLWriterImpl(writer, nsm);
        xmlWriter.writeStartElement(PLIST_ELEMENT_NAME);
        xmlWriter.writeStartElement(DICT_ELEMENT_NAME);
        xmlWriter.writeStartElement(KEY_ELEMENT_NAME);
        xmlWriter.writeTextContent(GRAPHICS_LIST);
        xmlWriter.writeEndElement();
        xmlWriter.writeStartElement(ARRAY);
        writeTreeElement(tree, xmlWriter);
        xmlWriter.writeEndElement();
        xmlWriter.writeEndElement();
        xmlWriter.writeEndElement();
View Full Code Here

Examples of org.coode.xml.XMLWriterImpl.writeEndElement()

        XMLWriter xmlWriter = new XMLWriterImpl(writer, nsm);
        xmlWriter.writeStartElement(PLIST_ELEMENT_NAME);
        xmlWriter.writeStartElement(DICT_ELEMENT_NAME);
        xmlWriter.writeStartElement(KEY_ELEMENT_NAME);
        xmlWriter.writeTextContent(GRAPHICS_LIST);
        xmlWriter.writeEndElement();
        xmlWriter.writeStartElement(ARRAY);
        writeTreeElement(tree, xmlWriter);
        xmlWriter.writeEndElement();
        xmlWriter.writeEndElement();
        xmlWriter.writeEndElement();
View Full Code Here

Examples of org.jvnet.staxex.XMLStreamWriterEx.writeEndElement()

        MutableXMLStreamBuffer buffer = new MutableXMLStreamBuffer();
        XMLStreamWriterEx writer = (XMLStreamWriterEx)buffer.createFromXMLStreamWriter();
        writer.writeStartDocument();
        writer.writeStartElement("foo");
        writer.writeBinary(bytes, 0, bytes.length, null);
        writer.writeEndElement();
        writer.writeEndDocument();
       
        assertTrue(buffer.isCreated());
       
        return buffer;
View Full Code Here

Examples of org.metatype.sxc.util.XoXMLStreamWriter.writeEndElement()

                    // open element
                    w.writeStartElementWithAutoPrefix(name.getNamespaceURI(), name.getLocalPart());

                    objectType.write(w, object, context);

                    w.writeEndElement();
                } catch (Exception e) {
                    if (e instanceof JAXBException) {
                        // assume event handler has already been notified
                        throw (JAXBException) e;
                    }
View Full Code Here

Examples of org.metatype.sxc.util.XoXMLStreamWriterImpl.writeEndElement()

                    // open element
                    w.writeStartElementWithAutoPrefix(name.getNamespaceURI(), name.getLocalPart());

                    objectType.write(w, object, context);

                    w.writeEndElement();
                } catch (Exception e) {
                    if (e instanceof JAXBException) {
                        // assume event handler has already been notified
                        throw (JAXBException) e;
                    }
View Full Code Here

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

        writer.writeComment(" *************** CACHE MANAGER *************** ");
        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 {
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.