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 Object
implements XMLIO

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

Version:
$Rev: 191 $
Author:
Artur Hefczyc

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

Field Detail

socket

protected Socket socket

ignore_presence

protected boolean ignore_presence
Constructor Detail

SocketXMLIO

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

Throws:
IOException
Method Detail

setSocket

public void setSocket(Socket sock)
               throws IOException
Throws:
IOException

close

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

isConnected

public boolean isConnected()

write

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

write

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

read

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

setIgnorePresence

public void setIgnorePresence(boolean ignore)
Specified by:
setIgnorePresence in interface XMLIO


Copyright © 2005-2012 Tigase. All Rights Reserved.