public class SocketXMLIO extends Object implements XMLIO
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignore_presence
Field description
|
protected Socket |
socket
Field description
|
| Constructor and Description |
|---|
SocketXMLIO(Socket sock)
Creates a new
SocketXMLReader instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method description
|
boolean |
isConnected()
Method description
|
Queue<tigase.xml.Element> |
read()
Method description
|
void |
setIgnorePresence(boolean ignore)
Method description
|
void |
setSocket(Socket sock)
Method description
|
void |
write(tigase.xml.Element data)
Method description
|
void |
write(String data)
Method description
|
protected Socket socket
protected boolean ignore_presence
public SocketXMLIO(Socket sock) throws IOException
SocketXMLReader instance.sock - IOExceptionpublic void setSocket(Socket sock) throws IOException
sock - IOExceptionpublic boolean isConnected()
public void write(tigase.xml.Element data)
throws IOException
write in interface XMLIOdata - IOExceptionpublic void write(String data) throws IOException
write in interface XMLIOdata - IOExceptionpublic Queue<tigase.xml.Element> read() throws IOException
read in interface XMLIOIOExceptionpublic void setIgnorePresence(boolean ignore)
setIgnorePresence in interface XMLIOignore - Copyright © 2005–2015 Tigase. All rights reserved.