|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.realtime.xmpp.streams.SocketStreamFactory
A TCP socket based XmlStream factory.
Nested Class Summary | |
protected class |
SocketStreamFactory.SocketStream
Our XmlStream implementation. |
Field Summary | |
protected int |
m_nPort
The port on the server to connect to. |
protected java.lang.String |
m_sHost
The host on the server to connect to. |
Constructor Summary | |
SocketStreamFactory(java.lang.String sHost,
int nPort)
Create a socket stream factory using a hostname and an IP port. |
Method Summary | |
XmlStream |
open()
Create a new XmlStream. |
java.lang.String |
toString()
Provide a human readable description of this factory instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String m_sHost
protected int m_nPort
Constructor Detail |
public SocketStreamFactory(java.lang.String sHost, int nPort)
Create a socket stream factory using a hostname and an IP port.
* @param sHost The hostname to connect to. * @param nPort The port to connect to.
Method Detail |
public XmlStream open() throws java.io.IOException
Create a new XmlStream. It is the responsibility of the caller to close the stream.
open
in interface XmlStreamFactory
java.io.IOException
- Generated when there are problems opening the stream.public java.lang.String toString()
Provide a human readable description of this factory instance.
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |