If I use
ANTLRFileStream antlrFileStream = new ANTLRFileStream("myfile.testlang");
or
ANTLRInputStream input = new ANTLRInputStream( new FileInputStream("myfile.testlang") );
Compiler shows deprecation error for both the classes what is alternative?
You can use CharStream instead of the deprecated classes as below.