Package tigase.test.util
Class SocketBosh
- java.lang.Object
-
- tigase.test.util.SocketXMLIO
-
- tigase.test.util.SocketBosh
-
- All Implemented Interfaces:
XMLIO
public class SocketBosh extends SocketXMLIO
Describe class SocketBosh here. Created: Wed May 18 16:23:47 2005- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
-
Field Summary
-
Fields inherited from class tigase.test.util.SocketXMLIO
ignore_presence, socket
-
-
Constructor Summary
Constructors Constructor Description SocketBosh(Socket sock)Creates a newSocketXMLReaderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Method descriptionprotected voidinitSocket(String data)Method descriptionQueue<tigase.xml.Element>read()Method descriptionvoidsetKeepAlive(boolean keep_alive)Method descriptionvoidwrite(String data)Method description-
Methods inherited from class tigase.test.util.SocketXMLIO
isConnected, setIgnorePresence, setSocket, write
-
-
-
-
Constructor Detail
-
SocketBosh
public SocketBosh(Socket sock) throws IOException
Creates a newSocketXMLReaderinstance.- Parameters:
sock-- Throws:
IOException
-
-
Method Detail
-
setKeepAlive
public void setKeepAlive(boolean keep_alive)
Method description- Parameters:
keep_alive-
-
write
public void write(String data) throws IOException
Method description- Specified by:
writein interfaceXMLIO- Overrides:
writein classSocketXMLIO- Parameters:
data-- Throws:
IOException
-
read
public Queue<tigase.xml.Element> read() throws IOException
Method description- Specified by:
readin interfaceXMLIO- Overrides:
readin classSocketXMLIO- Returns:
- Throws:
IOException
-
close
public void close()
Method description- Specified by:
closein interfaceXMLIO- Overrides:
closein classSocketXMLIO
-
initSocket
protected void initSocket(String data) throws IOException
Method description- Parameters:
data-- Throws:
IOException
-
-