net.sf.dexterim.msn.message
Class SingleLineMessage

java.lang.Object
  extended bynet.sf.dexterim.msn.message.SingleLineMessage
All Implemented Interfaces:
MsnMessage
Direct Known Subclasses:
AddToListMessage, AnswerMessage, BuddyPhoneMessage, CallMessage, ChallengeMessage, ChangeScreenNameMessage, ChangeStatusMessage, CheckMessage, ContactListMessage, InviteMessage, JoiningMessage, JoinMessage, LoginReplyMessage, NewServerMessage, OfflineMessage, OnlineMessage, PersonalInformationMessage, ReferMessage, RemoveFromListMessage, StartConversationMessage, SwitchBoardMessage, TweenerMessage, UnknownMessage, UserLeftMessage, USRMessage

public abstract class SingleLineMessage
extends java.lang.Object
implements MsnMessage

Author:
Christoph Walcher

Constructor Summary
SingleLineMessage()
           
 
Method Summary
 MsnMessage addCharBlock(char[] charBlock)
          Adds a feature to the CharBlock attribute of the SingleLineMessage object
 MsnMessage addLine(java.lang.String line)
          Adds a Received Line to a Message.
 int getRequiredByteInput()
          Gets the requiredByteInput attribute of the SingleLineMessage object
 boolean isCompleted()
          Return true if MsnMessage does not require any further input.
 boolean isMultipartMessage()
          Gets the multipartMessage attribute of the SingleLineMessage object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.dexterim.msn.message.MsnMessage
process
 

Constructor Detail

SingleLineMessage

public SingleLineMessage()
Method Detail

isCompleted

public boolean isCompleted()
Return true if MsnMessage does not require any further input. Is Completed will be called after the first addLine was called!

Specified by:
isCompleted in interface MsnMessage
Returns:
The completed value

isMultipartMessage

public boolean isMultipartMessage()
Gets the multipartMessage attribute of the SingleLineMessage object

Specified by:
isMultipartMessage in interface MsnMessage
Returns:
The multipartMessage value

getRequiredByteInput

public int getRequiredByteInput()
Gets the requiredByteInput attribute of the SingleLineMessage object

Specified by:
getRequiredByteInput in interface MsnMessage
Returns:
The requiredByteInput value

addCharBlock

public MsnMessage addCharBlock(char[] charBlock)
Adds a feature to the CharBlock attribute of the SingleLineMessage object

Specified by:
addCharBlock in interface MsnMessage
Parameters:
charBlock - The feature to be added to the CharBlock attribute
Returns:
Description of the Return Value
Throws:
net.sf.dexterim.msn.engine.MessageFormatException - Description of the Exception

addLine

public MsnMessage addLine(java.lang.String line)
                   throws MessageFormatException
Adds a Received Line to a Message. Return an instance of MsnMessage

Specified by:
addLine in interface MsnMessage
Parameters:
line - The feature to be added to the Line attribute
Returns:
Description of the Return Value
Throws:
net.sf.dexterim.msn.engine.MessageFormatException - Description of the Exception
MessageFormatException


Copyright © 2003-2004 Dexter IM Team. All Rights Reserved.