es.uc3m.it.xbe32.tlv
Interface TLVParseListener

All Known Implementing Classes:
TLVPrinter

public interface TLVParseListener

The classes implementing this interface process the XBE32 parsing events generated by the TLVParser class.

See Also:
TLVParser.setListener(), TLVParser.parse(), TLVParser.parseTLV(), TLV

Method Summary
 void complexTLVEnd(int type, int length)
          This method is called when a Complex TLV has just been processed by the TLVParser.
 void complexTLVStart(int type, int length)
          This method is called when a Complex TLV is found by the TLVParser.
 void endParsing(int length)
          This method is called when the TLVParser successfully ends parsing the full XBE32-encoded stream.
 void simpleTLV(int type, int length, Object vals)
          This method is called when a Simple TLV is processed by the TLVParser.
 void startParsing()
          This method is called when the TLVParser.parse() method is called and the parsing process starts.
 

Method Detail

startParsing

public void startParsing()
This method is called when the TLVParser.parse() method is called and the parsing process starts.

See Also:
TLVParser.parse()

complexTLVStart

public void complexTLVStart(int type,
                            int length)
                     throws TLVParseException
This method is called when a Complex TLV is found by the TLVParser.

Parameters:
type - the Type field of the Complex TLV to be parsed
length - the Length field of the Complex TLV to be parsed
Throws:
TLVParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
TLVParser.parse(), TLVParser.parseTLV()

complexTLVEnd

public void complexTLVEnd(int type,
                          int length)
                   throws TLVParseException
This method is called when a Complex TLV has just been processed by the TLVParser.

Parameters:
type - the Type field of the Complex TLV that has been parsed
length - the Length field of the Complex TLV thas has been parsed
Throws:
TLVParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
TLVParser.parse(), TLVParser.parseTLV()

simpleTLV

public void simpleTLV(int type,
                      int length,
                      Object vals)
               throws TLVParseException
This method is called when a Simple TLV is processed by the TLVParser.

Parameters:
type - the Type field of the Simple TLV being parsed
length - the Length field of the Simple TLV being parsed
vals - the Values field of the Simple TLV being parsed
Throws:
TLVParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
TLVParser.parse(), TLVParser.parseTLV()

endParsing

public void endParsing(int length)
                throws TLVParseException
This method is called when the TLVParser successfully ends parsing the full XBE32-encoded stream.

Throws:
TLVParseException - the listener may throw this exception if any syntax error occurs while processing this event
See Also:
TLVParser.parse()