tigase.test.util
Class SocketBosh

java.lang.Object
  extended by tigase.test.util.SocketXMLIO
      extended by 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: 224 $
Author:
Artur Hefczyc

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

Constructor Detail

SocketBosh

public SocketBosh(Socket sock)
           throws IOException
Creates a new SocketXMLReader instance.

Throws:
IOException
Method Detail

setKeepAlive

public void setKeepAlive(boolean keep_alive)

write

public void write(String data)
           throws IOException
Specified by:
write in interface XMLIO
Overrides:
write in class SocketXMLIO
Throws:
IOException

read

public Queue<tigase.xml.Element> read()
                               throws IOException
Specified by:
read in interface XMLIO
Overrides:
read in class SocketXMLIO
Throws:
IOException

close

public void close()
Specified by:
close in interface XMLIO
Overrides:
close in class SocketXMLIO

initSocket

protected void initSocket(String data)
                   throws IOException
Throws:
IOException


Copyright © 2005-2012 Tigase. All Rights Reserved.