net.sf.dexterim.msn.message
Interface MsnMessage

All Known Implementing Classes:
MimeMessage, SingleLineMessage

public interface MsnMessage

Author:
christoph

Method Summary
 MsnMessage addCharBlock(char[] charBlock)
          Adds a feature to the CharBlock attribute of the MsnMessage object
 MsnMessage addLine(java.lang.String line)
          Adds a Received Line to a Message.
 int getRequiredByteInput()
          Gets the requiredByteInput attribute of the MsnMessage object
 boolean isCompleted()
          Return true if MsnMessage does not require any further input.
 boolean isMultipartMessage()
          Gets the multipartMessage attribute of the MsnMessage object
 void process(MsnConnection connection)
          Double Dispatching Messages
 

Method Detail

addCharBlock

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

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
MessageFormatException

addLine

public MsnMessage addLine(java.lang.String line)
                   throws MessageFormatException
Adds a Received Line to a Message. Return an instance of 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

getRequiredByteInput

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

Returns:
The requiredByteInput value

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!

Returns:
The completed value

isMultipartMessage

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

Returns:
The multipartMessage value

process

public void process(MsnConnection connection)
Double Dispatching Messages

Parameters:
connection -


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