fipaos.parser.acl.string
Class Parser


public class Parser

Parser to parse/deparse FIPA XC00070F compliant strings to/from ACL objects


Method Summary
 static StringbyteLengthDecode(String in)
          Decodes the given String from a ByteLengthEncodedString format (see FIPA ACL definiton)
 static StringbyteLengthEncode(String in)
          Encodes the given String into a ByteLengthEncodedString format (see FIPA ACL definiton)
 static byte[]deparse(ACL acl)
          Converts ACL object to byte[] containing FIPA-compliant string encoding of ACL
 static StringgetUpToNextWhitespace(String in)
          Get everything upto the next whitespace ( ' ', '\t', '\r' or '\n' ), or
returns the whole String if there is no whitespace
 static voidmain(String[] args)
          Test harness
 static ACLparse(byte[] acl)
          Converts byte[] containing FIPA-compliant string encoding of ACL message to an ACL object
 static StringstringLiteralDecode(String in)
          Decodes the given String from a StringLiteral format (see FIPA ACL definiton)
 static StringstringLiteralEncode(String in)
          Encodes the given String into a StringLiteral format (see FIPA ACL definiton)

Method Detail

byteLengthDecode

public static String byteLengthDecode(String in)
Decodes the given String from a ByteLengthEncodedString format (see FIPA ACL definiton)
Parameters:
in - The String to decode
Returns: The decoded String

byteLengthEncode

public static String byteLengthEncode(String in)
Encodes the given String into a ByteLengthEncodedString format (see FIPA ACL definiton)
Parameters:
in - The String to encode
Returns: The encoded String

deparse

public static byte[] deparse(ACL acl)
Converts ACL object to byte[] containing FIPA-compliant string encoding of ACL

getUpToNextWhitespace

public static String getUpToNextWhitespace(String in)
Get everything upto the next whitespace ( ' ', '\t', '\r' or '\n' ), or
returns the whole String if there is no whitespace

main

public static void main(String[] args)
throws java.lang.Throwable
Test harness

parse

public static ACL parse(byte[] acl)
throws fipaos.parser.ParserException
Converts byte[] containing FIPA-compliant string encoding of ACL message to an ACL object

stringLiteralDecode

public static String stringLiteralDecode(String in)
Decodes the given String from a StringLiteral format (see FIPA ACL definiton)
Parameters:
in - The String to decode
Returns: The decoded String

stringLiteralEncode

public static String stringLiteralEncode(String in)
Encodes the given String into a StringLiteral format (see FIPA ACL definiton)
Parameters:
in - The String to encode
Returns: The encoded String

Association Links

to Class java.util.List

Properties of this DataMapper implementation

to Class fipaos.parser.datamapping.DataMapper

Instance of DataMapper to be used within the JVM