Package tigase.test.util
Class SocketXMLIO
- java.lang.Object
-
- tigase.test.util.SocketXMLIO
-
- All Implemented Interfaces:
XMLIO
- Direct Known Subclasses:
SocketBosh
public class SocketXMLIO extends Object implements XMLIO
Describe class SocketXMLIO here. Created: Wed May 18 16:23:47 2005- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanignore_presenceField descriptionprotected SocketsocketField description
-
Constructor Summary
Constructors Constructor Description SocketXMLIO(Socket sock)Creates a newSocketXMLReaderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Method descriptionbooleanisConnected()Method descriptionQueue<tigase.xml.Element>read()Method descriptionvoidsetIgnorePresence(boolean ignore)Method descriptionvoidsetSocket(Socket sock)Method descriptionvoidwrite(String data)Method descriptionvoidwrite(tigase.xml.Element data)Method description
-
-
-
Field Detail
-
socket
protected Socket socket
Field description
-
ignore_presence
protected boolean ignore_presence
Field description
-
-
Constructor Detail
-
SocketXMLIO
public SocketXMLIO(Socket sock) throws IOException
Creates a newSocketXMLReaderinstance.- Parameters:
sock-- Throws:
IOException
-
-
Method Detail
-
setSocket
public void setSocket(Socket sock) throws IOException
Method description- Parameters:
sock-- Throws:
IOException
-
isConnected
public boolean isConnected()
Method description- Returns:
-
write
public void write(tigase.xml.Element data) throws IOExceptionMethod description- Specified by:
writein interfaceXMLIO- Parameters:
data-- Throws:
IOException
-
write
public void write(String data) throws IOException
Method description- Specified by:
writein interfaceXMLIO- Parameters:
data-- Throws:
IOException
-
read
public Queue<tigase.xml.Element> read() throws IOException
Method description- Specified by:
readin interfaceXMLIO- Returns:
- Throws:
IOException
-
setIgnorePresence
public void setIgnorePresence(boolean ignore)
Method description- Specified by:
setIgnorePresencein interfaceXMLIO- Parameters:
ignore-
-
-