com.adventnet.tl1
Interface TL1Parser


public interface TL1Parser

Interface that must be implemented for writing parsers for the various types of messages. Users who wish to write their own parsing mechanism should implement this interface and plug it in TL1 API as follows.

 
 session.setParser(ParserImpl)
 

where session is the instance of TL1Session and ParserImpl is the implementation of this interface.

See Also:
TL1Session.setParser(com.adventnet.tl1.TL1Parser), TL1Session

Method Summary
 TL1Message createTL1Message(java.lang.String msg)
          Method that creates a TL1Message instance with the given string.
 

Method Detail

createTL1Message

TL1Message createTL1Message(java.lang.String msg)
                            throws TL1ParserException,
                                   java.lang.Exception
Method that creates a TL1Message instance with the given string.

Parameters:
msg - String representing the message
Returns:
TL1Message instance
Throws:
TL1ParserException - Thrown if the message given in string format is not a valid message as per TL1 syntax.
java.lang.Exception - Thrown if some other error occurs.
See Also:
TL1ParserException