fipaos.parser.acl.bitefficient
Class Parser

java.lang.Object
  |
  +--fipaos.parser.acl.bitefficient.Parser

public class Parser
extends java.lang.Object

Class to provide simplified API to make use of BitEfficient ACL encoding


Constructor Summary
Parser()
           
 
Method Summary
static byte[] deparse(ACL msg)
          Convert the given ACL message into bit-efficient format
static void main(java.lang.String[] args)
          Test harness - allows byte[] representation of an ACL message to be produced given an ACL message (assumed to be taken from STD-IN)
static ACL parse(byte[] msg)
          Convert the given byte[] message into an ACL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

deparse

public static byte[] deparse(ACL msg)
Convert the given ACL message into bit-efficient format
Parameters:
msg - The message to convert
Returns:
The byte[] representing the ACL msg, or null

parse

public static ACL parse(byte[] msg)
Convert the given byte[] message into an ACL
Parameters:
msg - byte[] representing the ACL msg, or null
Returns:
The message to convert

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test harness - allows byte[] representation of an ACL message to be produced given an ACL message (assumed to be taken from STD-IN)