src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java
/**
     * Sends <tt>message</tt> as a message correction through this transport,
     * specifying the mime type (html or plain text) and the id of the
     * message to replace.
     *
     * @param message The message to send.
     * @param mimeType The mime type of the message to send: text/html or
     * text/plain.
     * @param correctedMessageUID The ID of the message being corrected by
     * this message.
     */
Sends message as a message correction through this transport,
specifying the mime type (html or plain text) and the id of the
message to replace.

@param message The message to send.
@param mimeType The mime type of the message to send: text/html or
text/plain.
@param correctedMessageUID The ID of the message being corrected by
this message.
Sends message as a message correction through this transport specifying the mime type ( html or plain text ) and the id of the message to replace . @param message The message to send . @param mimeType The mime type of the message to send : text / html or text / plain . @param correctedMessageUID The ID of the message being corrected by this message .
public void correctInstantMessage(String message, String mimeType,
            String correctedMessageUID)
        throws OperationFailedException
    {
        if (!allowsMessageCorrections())
        {
            return;
        }
        OperationSetMessageCorrection mcOpSet = contact.getProtocolProvider()
                .getOperationSet(OperationSetMessageCorrection.class);
        Message msg;
        if (mimeType.equals(OperationSetBasicInstantMessaging.HTML_MIME_TYPE)
                && mcOpSet.isContentTypeSupported(
                OperationSetBasicInstantMessaging.HTML_MIME_TYPE))
        {
            msg = mcOpSet.createMessage(message,
                    OperationSetBasicInstantMessaging.HTML_MIME_TYPE,
                    "utf-8", "");
        }
        else
        {
            msg = mcOpSet.createMessage(message);
        }
        mcOpSet.correctMessage(
            contact, contactResource, msg, correctedMessageUID);
    }
public void correctInstantMessage ( String message , String mimeType , String correctedMessageUID ) throws OperationFailedException { if ( ! allowsMessageCorrections ( ) ) { return ; } OperationSetMessageCorrection mcOpSet = contact . getProtocolProvider ( ) . getOperationSet ( OperationSetMessageCorrection . class ) ; Message msg ; if ( mimeType . equals ( OperationSetBasicInstantMessaging . HTML_MIME_TYPE ) && mcOpSet . isContentTypeSupported ( OperationSetBasicInstantMessaging . HTML_MIME_TYPE ) ) { msg = mcOpSet . createMessage ( message , OperationSetBasicInstantMessaging . HTML_MIME_TYPE , "utf-8" , "" ) ; } else { msg = mcOpSet . createMessage ( message ) ; } mcOpSet . correctMessage ( contact , contactResource , msg , correctedMessageUID ) ; }
Sends <tt>message</tt> as a message correction through this transport,
 specifying the mime type (html or plain text) and the id of the
 message to replace.
Sends <tt > message< / tt > as a message correction through this transport specifying the mime type ( html or plain text ) and the id of the message to replace .