public class Parser extends Object
This class parses text stream that respects STOMP protocol to extract a structured Frame that provides a
set of information. A Frame contains:
If the text stream violates the STOMP protocol, then several ParseException could be thrown.
The ParseException class provides different subclasses that detail the cause.
public void parse()
Parses the stream to extract data.
public Frame toFrame() throws ParseException
Builds a Frame that provides information extracted from stream. If parse() has not
been already called, then this method invokes it.
If the result of the parse() operation has detected any protocol violation, then the appropriate
ParseException is thrown by this method.
ParseException - if stream violates STOMP protocolCopyright © 2014. All Rights Reserved.