aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/XMPP/XmppWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/XMPP/XmppWriter.cs (renamed from OpenSim/Framework/Communications/XMPP/Stanza.cs)33
1 files changed, 18 insertions, 15 deletions
diff --git a/OpenSim/Framework/Communications/XMPP/Stanza.cs b/OpenSim/Framework/Communications/XMPP/XmppWriter.cs
index 3930bac..c5ad9b4 100644
--- a/OpenSim/Framework/Communications/XMPP/Stanza.cs
+++ b/OpenSim/Framework/Communications/XMPP/XmppWriter.cs
@@ -25,31 +25,34 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System; 28using System.IO;
29using System.Text;
29using System.Xml; 30using System.Xml;
30 31
32using IOStream = System.IO.Stream;
33
31namespace OpenSim.Framework.Communications.XMPP 34namespace OpenSim.Framework.Communications.XMPP
32{ 35{
33 public class Stanza 36 public class XMPPWriter: XmlTextWriter
34 { 37 {
35 public string localName = String.Empty; 38 public XMPPWriter(TextWriter textWriter) : base(textWriter)
36 public JId to; 39 {
37 public JId from; 40 }
38 public string id;
39 public string lang;
40 public string nodeName;
41 41
42 public Stanza(XmlNode node, Object defaults, bool hasID) 42 public XMPPWriter(IOStream stream) : this(stream, Encoding.UTF8)
43 { 43 {
44 }
44 45
46 public XMPPWriter(IOStream stream, Encoding enc) : base(stream, enc)
47 {
45 } 48 }
46 //public virtual XmlElement getNode() 49
47 //{ 50 public override void WriteStartDocument()
48 //return new XmlElement(); 51 {
49 //} 52 }
50 public virtual string generateId() 53
54 public override void WriteStartDocument(bool standalone)
51 { 55 {
52 return "";
53 } 56 }
54 } 57 }
55} 58}