fipaos.parser.envelope.xml
Class Parser


public class Parser

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


Method Summary
 static byte[]deparse(fipaos.ont.fipa.fipaman.Envelope env)
          Convert the given Envelope into FIPA-defined XML format
 static voidmain(String[] args)
           
 static fipaos.ont.fipa.fipaman.Envelopeparse(byte[] env)
          Convert the given byte[] message into an Envelope

Method Detail

deparse

public static byte[] deparse(fipaos.ont.fipa.fipaman.Envelope env)
throws fipaos.parser.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(String[] args)
throws java.lang.Throwable

parse

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