com.interfaceware.chameleon
Class Wrapper

java.lang.Object
  extended by com.interfaceware.chameleon.Wrapper
Direct Known Subclasses:
WrapperLlp

public abstract class Wrapper
extends java.lang.Object

This class is no longer used but will be supported for backward compatibility. New applications should use LlpServer and LlpClient. This class handles wrapping and unwrapping of text messages. Since the class is abstract, it cannot be instantiated and a specific wrapping/unwrapping protocol must be handled by a descendant class.


Constructor Summary
Wrapper()
           
 
Method Summary
abstract  java.lang.String addWrapper(java.lang.String MessageData)
          This method must be overridden in a descendant class to add a specific wrapper to the message data.
abstract  boolean detectMessage(java.lang.StringBuffer Buffer, java.lang.StringBuffer Message)
          This method must be overridden in a descendant class to detect the beginning and end of a message for a specific wrapper protocol.
 Engine engine()
          Get the Engine assigned to parse messages for this wrapper.
 void setEngine(Engine AEngine)
          Set the specified engine to parse messages from this wrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wrapper

public Wrapper()
Method Detail

addWrapper

public abstract java.lang.String addWrapper(java.lang.String MessageData)
This method must be overridden in a descendant class to add a specific wrapper to the message data.


detectMessage

public abstract boolean detectMessage(java.lang.StringBuffer Buffer,
                                      java.lang.StringBuffer Message)
This method must be overridden in a descendant class to detect the beginning and end of a message for a specific wrapper protocol. The routine should remove the data read from the buffer, set the Message to be equal to the message data, and return true if a message is present in the buffer. Otherwise it should just return false and not alter the buffer. In this case the Message is undefined.


setEngine

public void setEngine(Engine AEngine)
Set the specified engine to parse messages from this wrapper.


engine

public Engine engine()
Get the Engine assigned to parse messages for this wrapper.