|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectJADE_SL.StringACLCodec
This class implements the FIPA String codec for ACLMessages. Notice that it is not possible to convey a sequence of bytes over a StringACLCodec because the bytes with the 8th bit ON cannot properly converted into a char.
| Field Summary | |
private static java.lang.String |
BASE64ENCODING_KEY
Key of the user-defined parameter used to signal the automatic JADE conversion of the content into Base64 encoding |
private static java.lang.String |
BASE64ENCODING_VALUE
Value of the user-defined parameter used to signal the automatic JADE conversion of the content into Base64 encoding |
private static java.lang.String |
CONTENT
|
private static java.lang.String |
CONVERSATION_ID
|
private static java.lang.String |
ENCODING
|
private static java.lang.String |
IN_REPLY_TO
|
private static java.lang.String |
LANGUAGE
|
static java.lang.String |
NAME
|
private static java.lang.String |
ONTOLOGY
|
(package private) java.io.Writer |
out
|
(package private) FIPAParser |
parser
|
private static java.lang.String |
PROTOCOL
|
private static java.lang.String |
RECEIVER
|
private static java.lang.String |
REPLY_BY
|
private static java.lang.String |
REPLY_TO
|
private static java.lang.String |
REPLY_WITH
|
private static java.lang.String |
SENDER
|
| Constructor Summary | |
StringACLCodec()
constructor for the codec. |
|
StringACLCodec(java.io.Reader r,
java.io.Writer w)
constructor for the codec. |
|
| Method Summary | |
private void |
checkBase64Encoding(ACLMessage msg)
if there was an automatical Base64 encoding, then it performs automatic decoding. |
FIPAPerformative |
decode()
decode and parses the next message from the Reader passed in the constructor. |
byte[] |
encode(ACLMessage msg)
If the content of the message is a byteSequence, then this method encodes the content in Base64 and automatically sets the value of the encoding slot. |
private static java.lang.String |
escape(java.lang.String s)
|
java.lang.String |
getName()
|
(package private) static java.lang.String |
toString(ACLMessage msg)
|
void |
write(ACLMessage msg)
encodes the message and writes it into the Writer passed in the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
private static final java.lang.String BASE64ENCODING_KEY
private static final java.lang.String BASE64ENCODING_VALUE
private static final java.lang.String SENDER
private static final java.lang.String RECEIVER
private static final java.lang.String CONTENT
private static final java.lang.String REPLY_WITH
private static final java.lang.String IN_REPLY_TO
private static final java.lang.String REPLY_TO
private static final java.lang.String LANGUAGE
private static final java.lang.String ENCODING
private static final java.lang.String ONTOLOGY
private static final java.lang.String REPLY_BY
private static final java.lang.String PROTOCOL
private static final java.lang.String CONVERSATION_ID
FIPAParser parser
java.io.Writer out
| Constructor Detail |
public StringACLCodec()
public StringACLCodec(java.io.Reader r,
java.io.Writer w)
| Method Detail |
private void checkBase64Encoding(ACLMessage msg)
public FIPAPerformative decode()
throws java.lang.Exception
ACLCodec.CodecException - if any Exception occurs during the
parsing/reading operation
java.lang.Exceptionpublic void write(ACLMessage msg)
flush on the writer.
private static java.lang.String escape(java.lang.String s)
static java.lang.String toString(ACLMessage msg)
ACLMessage.toString()public byte[] encode(ACLMessage msg)
ACLCodec#encode(ACLMessage msg)public java.lang.String getName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||