mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +01:00
Two words: Spell Checker
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2076 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
555c85aff9
commit
d9bcfb69ea
4 changed files with 6 additions and 6 deletions
|
@ -49,7 +49,7 @@ Debugging mode can be enabled in two different ways:
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
If you wish to explicity disable debug mode in your application, including using the command-line parameter,
|
If you wish to explicitly disable debug mode in your application, including using the command-line parameter,
|
||||||
add the following line to your application before opening new connections:
|
add the following line to your application before opening new connections:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ Messaging using Chat and GroupChat
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Sending messages back and forth is at the core of instant messaging. Two classes
|
Sending messages back and forth is at the core of instant messaging. Two classes
|
||||||
aid in sending and recieiving messages:
|
aid in sending and receiving messages:
|
||||||
<ul>
|
<ul>
|
||||||
<li> <tt>org.jivesoftware.smack.Chat</tt> -- used to send messages between two people.
|
<li> <tt>org.jivesoftware.smack.Chat</tt> -- used to send messages between two people.
|
||||||
<li> <tt>org.jivesoftware.smack.GroupChat</tt> -- used to join a chat room to send messages between many people.
|
<li> <tt>org.jivesoftware.smack.GroupChat</tt> -- used to join a chat room to send messages between many people.
|
||||||
|
@ -31,7 +31,7 @@ Chat and GroupChat classes to send and listen for messages directly.
|
||||||
Chat
|
Chat
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
A chat creates a new thread of messgaes (using a thread ID) between two users. The
|
A chat creates a new thread of messages (using a thread ID) between two users. The
|
||||||
following code snippet demonstrates how to create a new Chat with a user and then send
|
following code snippet demonstrates how to create a new Chat with a user and then send
|
||||||
them a text message:<p>
|
them a text message:<p>
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ message.<p>
|
||||||
<div class="code"><pre>
|
<div class="code"><pre>
|
||||||
<font color="gray"><i>// Assume we've created an XMPPConnection name "connection".</i></font>
|
<font color="gray"><i>// Assume we've created an XMPPConnection name "connection".</i></font>
|
||||||
GroupChat newGroupChat = connection.createGroupChat(<font color="green">"test@jivesoftware.com"</font>);
|
GroupChat newGroupChat = connection.createGroupChat(<font color="green">"test@jivesoftware.com"</font>);
|
||||||
<font color="gray"><i>// Join the gropu chat using the nickname "jsmith".</i></font>
|
<font color="gray"><i>// Join the group chat using the nickname "jsmith".</i></font>
|
||||||
newGroupChat.join(<font color="green">"jsmith"</font>);
|
newGroupChat.join(<font color="green">"jsmith"</font>);
|
||||||
<font color="gray"><i>// Send a message to all the other people in the chat room.</i></font>
|
<font color="gray"><i>// Send a message to all the other people in the chat room.</i></font>
|
||||||
newGroupChat.sendMessage(<font color="green">"Howdy!"</font>);
|
newGroupChat.sendMessage(<font color="green">"Howdy!"</font>);
|
||||||
|
|
|
@ -67,7 +67,7 @@ to the <tt>PacketFilter</tt> interface. The default set of filters includes:
|
||||||
<ul>
|
<ul>
|
||||||
<li> <tt>PacketTypeFilter</tt> -- filters for packets that are a particular Class type.
|
<li> <tt>PacketTypeFilter</tt> -- filters for packets that are a particular Class type.
|
||||||
<li> <tt>PacketIDFilter</tt> -- filters for packets with a particular packet ID.
|
<li> <tt>PacketIDFilter</tt> -- filters for packets with a particular packet ID.
|
||||||
<li> <tt>ThreadFilter</tt> -- filters for message packets with a parituclar thread ID.
|
<li> <tt>ThreadFilter</tt> -- filters for message packets with a particular thread ID.
|
||||||
<li> <tt>ToContainsFilter</tt> -- filters for packets that are sent to a particular address.
|
<li> <tt>ToContainsFilter</tt> -- filters for packets that are sent to a particular address.
|
||||||
<li> <tt>FromContainsFilter</tt> -- filters for packets that are sent to a particular address.
|
<li> <tt>FromContainsFilter</tt> -- filters for packets that are sent to a particular address.
|
||||||
<li> <tt>PacketExtensionFilter</tt> -- filters for packets that have a particular packet extension.
|
<li> <tt>PacketExtensionFilter</tt> -- filters for packets that have a particular packet extension.
|
||||||
|
|
|
@ -73,7 +73,7 @@ you should keep the following in mind:
|
||||||
|
|
||||||
<li>Objects sent as property values must implement Serialiable. Additionally, both the sender
|
<li>Objects sent as property values must implement Serialiable. Additionally, both the sender
|
||||||
and receiver must have identical versions of the class, or a serialization exception
|
and receiver must have identical versions of the class, or a serialization exception
|
||||||
will occur when de-serialiazing the object.
|
will occur when de-serializing the object.
|
||||||
|
|
||||||
<li>Serialized objects can potentially be quite large, which will use more bandwidth and
|
<li>Serialized objects can potentially be quite large, which will use more bandwidth and
|
||||||
server resources.
|
server resources.
|
||||||
|
|
Loading…
Reference in a new issue