tigase.test.util
Class SocketXMLIO

java.lang.Object
  extended by tigase.test.util.SocketXMLIO
All Implemented Interfaces:
XMLIO
Direct Known Subclasses:
SocketBosh

public class SocketXMLIO
extends java.lang.Object
implements XMLIO

Describe class SocketXMLIO here. Created: Wed May 18 16:23:47 2005

Version:
$Rev: 139 $
Author:
Artur Hefczyc

Field Summary
protected  java.net.Socket socket
           
 
Constructor Summary
SocketXMLIO(java.net.Socket sock)
          Creates a new SocketXMLReader instance.
 
Method Summary
 void close()
           
 java.util.Queue<tigase.xml.Element> read()
           
 void setSocket(java.net.Socket sock)
           
 void write(tigase.xml.Element data)
           
 void write(java.lang.String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

protected java.net.Socket socket
Constructor Detail

SocketXMLIO

public SocketXMLIO(java.net.Socket sock)
            throws java.io.IOException
Creates a new SocketXMLReader instance.

Throws:
java.io.IOException
Method Detail

setSocket

public void setSocket(java.net.Socket sock)
               throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface XMLIO

write

public void write(tigase.xml.Element data)
           throws java.io.IOException
Specified by:
write in interface XMLIO
Throws:
java.io.IOException

write

public void write(java.lang.String data)
           throws java.io.IOException
Specified by:
write in interface XMLIO
Throws:
java.io.IOException

read

public java.util.Queue<tigase.xml.Element> read()
                                         throws java.io.IOException
Specified by:
read in interface XMLIO
Throws:
java.io.IOException


Copyright © 2005-2008 Tigase. All Rights Reserved.