Examples of endDocument()


Examples of net.sourceforge.gpstools.kml.GpxTrackWriter.endDocument()

    public void printKML(Quantity q, OutputStream out, String name)
            throws FunctionEvaluationException, SAXException, IOException {
        GpxTrackWriter qtw = QuantityTrackWriter
                .getInstance(out, name, q, this);
        qtw.writeGpx(mygpx);
        qtw.endDocument();
    }

    /**
     * Generates output of the specified type.
     *
 
View Full Code Here

Examples of no.priv.garshol.duke.utils.XMLPrettyPrinter.endDocument()

        writeDataSource(pp, src);
      pp.endElement("group");
    }

    pp.endElement("duke");
    pp.endDocument();

    fos.close();
  }

  private static void writeParam(XMLPrettyPrinter pp, String name, String value) {
View Full Code Here

Examples of nu.validator.htmlparser.sax.HtmlSerializer.endDocument()

                endElement(ch, "tbody");
                endElement(ch, "table");
                endElement(ch, "body");
                endElement(ch, "html");
            } finally {
                ch.endDocument();
            }
        } catch (SAXException e) {
            throw new IOException(e);
        }
    }
View Full Code Here

Examples of org.apache.abdera.writer.StreamWriter.endDocument()

        sw.setOutputStream(out).setAutoIndent(true);
        ConventionSerializationContext c = new ConventionSerializationContext(sw);
        c.setSerializer(MyEntry.class, new EntrySerializer());
        sw.startDocument();
        c.serialize(new MyEntry());
        sw.endDocument();

        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        Document<Entry> doc = abdera.getParser().parse(in);
        Entry entry = doc.getRoot();
        assertEquals("tag:example.org,2008:foo", entry.getId().toString());
View Full Code Here

Examples of org.apache.avalon.framework.configuration.NamespacedSAXConfigurationHandler.endDocument()

        handler.characters( childvalue.toCharArray(), 0, childvalue.length() );
        handler.endElement( childURI, childlocal, childraw );
        handler.endElement( null, null, rootraw);
        handler.endPrefixMapping( "child" );
        handler.endDocument();

        final Configuration configuration = handler.getConfiguration();
        assertEquals( attValue, configuration.getAttribute(attqName));
        assertEquals( childvalue, configuration.getChild(childlocal).getValue());
        assertEquals( childURI, configuration.getChild(childlocal).getNamespace() );
View Full Code Here

Examples of org.apache.avalon.framework.configuration.SAXConfigurationHandler.endDocument()

        handler.endElement( childURI, childlocal, childraw );
        handler.startElement( rootURI, emptylocal, emptyraw, emptyAttributes );
        handler.endElement( rootURI, emptylocal, emptyraw );
        handler.endElement( null, null, rootraw);
        handler.endPrefixMapping( "child" );
        handler.endDocument();

        final Configuration configuration = handler.getConfiguration();
        assertEquals( attValue, configuration.getAttribute(attqName));
        assertEquals( childvalue, configuration.getChild(childraw).getValue());
        assertEquals( "", configuration.getChild(childraw).getNamespace() );
View Full Code Here

Examples of org.apache.cocoon.components.sax.XMLSerializer.endDocument()

                        this.manager.release(selector);
                    }
                }
                transformers.clear();
                nextConsumer = null;
                compiler.endDocument();
                loadedCoplet[0] = compiler.getSAXFragment();
            }
        } catch (Exception local) {
            // this exception is ignored and an error message is included
            // later on when the coplet is processed
View Full Code Here

Examples of org.apache.cocoon.sax.SAXConsumer.endDocument()

            consumer.startElement("", "timestamp", "timestamp", new ImmutableAttributesImpl());
            String timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S").format(new Date());
            consumer.characters(timestamp.toCharArray(), 0, timestamp.length());
            consumer.endElement("", "timestamp", "timestamp");

            consumer.endDocument();
        } catch (SAXException e) {
            throw new ProcessingException(e);
        }
    }
}
View Full Code Here

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

                       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);
          } finally {
                      if (oStream != null) {
                          oStream.flush();
View Full Code Here

Examples of org.apache.cocoon.transformation.Transformer.endDocument()

                        }
                    }
                       
                   
                    if (xslT != null) {
                        xslT.endDocument();
                        xslT = null;
                    }
                } finally {
                    SessionContextImpl.copletInfo.set(null);
                    if (selector != null) {
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.