fipaos.parser.envelope.xml
Class Parser

java.lang.Object
  |
  +--fipaos.parser.envelope.xml.Parser

public class Parser
extends java.lang.Object

Facade to provide FIPA-compliant (XC00085G) Envelope<->XML translation


Constructor Summary
Parser()
           
 
Method Summary
static byte[] deparse(Envelope env)
          Convert the given Envelope into FIPA-defined XML format
static void main(java.lang.String[] args)
           
static Envelope parse(byte[] env)
          Convert the given byte[] message into an Envelope
 
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

parse

public static Envelope parse(byte[] env)
                      throws ParserException
Convert the given byte[] message into an Envelope
Parameters:
msg - byte[] representing the Envelope
Returns:
The Envelope object representing the original byte[]

deparse

public static byte[] deparse(Envelope env)
                      throws ParserException
Convert the given Envelope into FIPA-defined XML format
Parameters:
env - The envelope to convert
Returns:
The byte[] representing the Envelope, or null

main

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