Examples of endDocument()


Examples of org.apache.xml.serializer.SerializationHandler.endDocument()

        // ... so waiting until just before the end seems simplest/safest.
  resultFragment = dtmFrag.getDocument();     
      }
      finally
      {
        rth.endDocument();
      }
    }
    catch (org.xml.sax.SAXException se)
    {
      throw new TransformerException(se);
View Full Code Here

Examples of org.carrot2.clustering.stc.GeneralizedSuffixTree.SequenceBuilder.endDocument()

    public void testMultiphraseGST()
    {
        final SequenceBuilder sb = new SequenceBuilder();
        sb.addPhrase(0, 1, 2, 3);
        sb.addPhrase(0, 1, 2, 3);
        sb.endDocument();
        sb.addPhrase(4, 1, 2, 3);
        sb.endDocument();
        sb.addPhrase(4, 2, 3, 5);
        sb.endDocument();
View Full Code Here

Examples of org.codehaus.plexus.util.xml.pull.MXSerializer.endDocument()

        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "  " );
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" );
        serializer.setOutput( writer );
        serializer.startDocument( bobberArchetype.getModelEncoding(), null );
        writeBobberArchetype( bobberArchetype, "archetype", serializer );
        serializer.endDocument();
    } //-- void write(Writer, BobberArchetype)

    /**
     * Method writeBobberArchetype.
     *
 
View Full Code Here

Examples of org.codehaus.plexus.util.xml.pull.XmlSerializer.endDocument()

        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "  " );
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" );
        serializer.setOutput( writer );
        serializer.startDocument( bobberArchetype.getModelEncoding(), null );
        writeBobberArchetype( bobberArchetype, "archetype", serializer );
        serializer.endDocument();
    } //-- void write(Writer, BobberArchetype)

    /**
     * Method writeBobberArchetype.
     *
 
View Full Code Here

Examples of org.databene.commons.xml.SimpleXMLWriter.endDocument()

      SimpleXMLWriter writer = new SimpleXMLWriter(out, Encodings.UTF_8, true);
      writer.startDocument();
      writer.startElement("dbsanity");
      int checkCount = process(schemaChange, writer);
      writer.endElement("dbsanity");
      writer.endDocument();
      writer.close();
      return checkCount;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of org.dom4j.io.SAXContentHandler.endDocument()

        SAXContentHandler contentHandler = new SAXContentHandler();
        XMLOutput output = new XMLOutput( contentHandler );
       
        contentHandler.startDocument();
        script.run(context, output);
        contentHandler.endDocument();
       
        return contentHandler.getDocument();
    }
}
View Full Code Here

Examples of org.dom4j.io.XMLWriter.endDocument()

            xml.startDTD("catalogs", PUBLIC_ID, SYSTEM_ID);
            xml.endDTD();

            _saveCatalogs(xml, catalogs);

            xml.endDocument();
        } finally {
            try {
                if (xml != null) {
                    xml.flush();
                }
View Full Code Here

Examples of org.dom4j.jaxb.JAXBWriter.endDocument()

                    OutputFormat.createPrettyPrint());
            jaxbWriter.setOutput(outputFile);

            jaxbWriter.startDocument();
            jaxbWriter.write(orders);
            jaxbWriter.endDocument();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.record.MarshalRecord.endDocument()

                if (isFragment()) {
                    writerRecord.node(xmlDocument, xmlDescriptor.getNamespaceResolver());
                } else {
                    writerRecord.startDocument(encoding, version);
                    writerRecord.node(xmlDocument, writerRecord.getNamespaceResolver());
                    writerRecord.endDocument();
                }
            } catch (XMLPlatformException e) {
                throw XMLMarshalException.marshalException(e);
            }
        }
View Full Code Here

Examples of org.eclipse.persistence.oxm.record.OutputStreamRecord.endDocument()

                        if (isFragment()) {
                            record.node(xmlDocument, xmlDescriptor.getNamespaceResolver());
                        } else {
                            record.startDocument(encoding, version);
                            record.node(xmlDocument, record.getNamespaceResolver());
                            record.endDocument();
                        }
                    } catch (XMLPlatformException e) {
                        throw XMLMarshalException.marshalException(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.