URL url = new URL(input.getSystemId());
inputStream = url.openStream();
charStream = new ANTLRInputStream(inputStream);
}
JSONLexer lexer = new JSONLexer(charStream);
TokenRewriteStream tokens = new TokenRewriteStream(lexer);
ExtendedJSONParser parser = new ExtendedJSONParser(tokens, input, getErrorHandler());
CommonTree commonTree = (CommonTree) parser.message().getTree();
parseRoot(commonTree);
if(null != inputStream) {
inputStream.close();