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:
Matt Tucker 2003-08-18 15:14:09 +00:00 committed by mtucker
parent dd1256c9b7
commit a0daf9edc9
1 changed files with 12 additions and 13 deletions

View File

@ -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);
*
* &nbsp; * // 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()));
* &nbsp; *
* con.sendPacket(timeRequest); * con.sendPacket(timeRequest);
* &nbsp; *
* <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> &#38;&#38; 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