context.arch.comm.language
Interface EncoderInterface

All Known Implementing Classes:
XMLEncoder

public interface EncoderInterface

This interface specifies all the methods an EncoderInterface object must support. This allows the details of the encoding to be abstracted away.


Method Summary
 java.lang.String encodeData(DataObject data)
          Method to encode the incoming data
 java.lang.String getClassName()
          Method to get the class being used for encoding
 java.lang.String getLanguage()
          Method to get the language being used for encoding
 

Method Detail

encodeData

public java.lang.String encodeData(DataObject data)
                            throws EncodeException
Method to encode the incoming data
Parameters:
data - Data to be encoded
Returns:
the encoded message
Throws:
EncodeException - thrown when the given data can not be encoded successfully

getClassName

public java.lang.String getClassName()
Method to get the class being used for encoding
Returns:
the class used for encoding

getLanguage

public java.lang.String getLanguage()
Method to get the language being used for encoding
Returns:
the language used for encoding