mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +01:00
Removed HTML markup in Javadoc.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2032 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
dd1256c9b7
commit
a0daf9edc9
1 changed files with 12 additions and 13 deletions
|
@ -14,24 +14,23 @@ import java.text.DateFormat;
|
||||||
* following code snippet:
|
* following code snippet:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* <font color="darkgreen">// Request the time from a remote user.</font>
|
* // Request the time from a remote user.
|
||||||
* Time timeRequest = <font color="navy"><b>new</b></font> Time();
|
* Time timeRequest = new Time();
|
||||||
* timeRequest.setType(IQ.Type.GET);
|
* timeRequest.setType(IQ.Type.GET);
|
||||||
* timeRequest.setTo(<font color="red">"someUser@example.com"</font>);
|
* timeRequest.setTo(someUser@example.com);
|
||||||
|
*
|
||||||
*
|
* // Create a packet collector to listen for a response.
|
||||||
* <font color="darkgreen">// Create a packet collector to listen for a response.</font>
|
|
||||||
* PacketCollector collector = con.createPacketCollector(
|
* PacketCollector collector = con.createPacketCollector(
|
||||||
* <font color="navy"><b>new</b></font> PacketIDFilter(timeRequest.getPacketID()));
|
* new PacketIDFilter(timeRequest.getPacketID()));
|
||||||
*
|
*
|
||||||
* con.sendPacket(timeRequest);
|
* con.sendPacket(timeRequest);
|
||||||
*
|
*
|
||||||
* <font color="darkgreen">// Wait up to 5 seconds for a result.</font>
|
* // Wait up to 5 seconds for a result.
|
||||||
* IQ result = (IQ)collector.nextResult(5000);
|
* IQ result = (IQ)collector.nextResult(5000);
|
||||||
* <font color="navy"><b>if</b></font> (result != <font color="navy"><b>null</b></font> && result.getType() == IQ.Type.RESULT) <font color="navy">{</font>
|
* if (result != null && result.getType() == IQ.Type.RESULT) {
|
||||||
* Time timeResult = (Time)result;
|
* Time timeResult = (Time)result;
|
||||||
* <font color="darkgreen">// Do something with result...</font>
|
* // Do something with result...
|
||||||
* <font color="navy">}</font></pre><p>
|
* }</pre><p>
|
||||||
*
|
*
|
||||||
* Warning: this is an non-standard protocol documented by
|
* Warning: this is an non-standard protocol documented by
|
||||||
* <a href="http://www.jabber.org/jeps/jep-0090.html">JEP-90</a>. Because this is a
|
* <a href="http://www.jabber.org/jeps/jep-0090.html">JEP-90</a>. Because this is a
|
||||||
|
|
Loading…
Reference in a new issue