Source code: edu/ou/kmi/buddyspace/xml/XMLStreamFooter.java
1 package edu.ou.kmi.buddyspace.xml;
2
3 /*
4 * XMLStreamFooter.java
5 *
6 * Project: BuddySpace
7 * (C) Copyright Knowledge Media Institute 2002
8 *
9 *
10 * Created on 7 August 2002, 13:21
11 */
12
13 import org.jabber.jabberbeans.Packet;
14
15 /**
16 * Class which represents an XMLStream footer - this closes whole
17 * communication with jabber server. It is <code></stream:stream></code>.
18 *
19 * @author Jiri Komzak, Knowledge Media Institute, Open University, United Kingdom
20 */
21 public class XMLStreamFooter implements Packet {
22
23 /**
24 * <code>appendItem</code> appends the XML representation of the
25 * XML footer to the specified <code>StringBuffer</code>.
26 *
27 * @param retval The <code>StringBuffer</code> to append to
28 */
29 public void appendItem(StringBuffer retval) {
30 retval.append("</stream:stream>");
31 }
32
33 /**
34 * <code>toString</code> returns string representation of the tag.
35 */
36 public String toString() {
37 return new String("</stream:stream>");
38 }
39 }