throws IOException
{
super.lexer = new SdpLexer(data);
CommonTokenStream tokens = new CommonTokenStream(lexer);
SdpParser thisParser = new SdpParser(tokens);
parser = thisParser;
((SdpLexer)lexer).enableErrorMessageCollection(true);
thisParser.enableErrorMessageCollection(true);
try
{
thisParser.start();
if (((SdpLexer)lexer).hasExceptions())
{
List<RecognitionException> exps = ((SdpLexer)lexer).getExceptions();
addErrorsLexer(source, exps);
return null;
}
if (thisParser.hasExceptions())
{
List<RecognitionException> exps = thisParser.getExceptions();
addErrorsParser(source, exps);
} else
{
return thisParser.getSdps();
}
} catch (RecognitionException errEx)
{
errEx.printStackTrace();
addError(new ParseError(source, errEx.line, errEx.charPositionInLine, getErrorMessage(errEx, parser.getTokenNames())));