Package org.antlr.v4.runtime
Class ANTLRFileStream
- java.lang.Object
- 
- org.antlr.v4.runtime.ANTLRInputStream
- 
- org.antlr.v4.runtime.ANTLRFileStream
 
 
- 
- All Implemented Interfaces:
- CharStream,- IntStream
 
 @Deprecated public class ANTLRFileStream extends ANTLRInputStream Deprecated.as of 4.7 Please useCharStreamsinterface.This is anANTLRInputStreamthat is loaded from a file all at once when you construct the object.
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringfileNameDeprecated.- 
Fields inherited from class org.antlr.v4.runtime.ANTLRInputStreamdata, INITIAL_BUFFER_SIZE, n, name, p, READ_BUFFER_SIZE
 - 
Fields inherited from interface org.antlr.v4.runtime.IntStreamEOF, UNKNOWN_SOURCE_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description ANTLRFileStream(String fileName)Deprecated.ANTLRFileStream(String fileName, String encoding)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetSourceName()Deprecated.Gets the name of the underlying symbol source.voidload(String fileName, String encoding)Deprecated.
 
- 
- 
- 
Field Detail- 
fileNameprotected String fileName Deprecated.
 
- 
 - 
Constructor Detail- 
ANTLRFileStreampublic ANTLRFileStream(String fileName) throws IOException Deprecated.- Throws:
- IOException
 
 - 
ANTLRFileStreampublic ANTLRFileStream(String fileName, String encoding) throws IOException Deprecated.- Throws:
- IOException
 
 
- 
 - 
Method Detail- 
loadpublic void load(String fileName, String encoding) throws IOException Deprecated.- Throws:
- IOException
 
 - 
getSourceNamepublic String getSourceName() Deprecated.Description copied from interface:IntStreamGets the name of the underlying symbol source. This method returns a non-null, non-empty string. If such a name is not known, this method returnsIntStream.UNKNOWN_SOURCE_NAME.- Specified by:
- getSourceNamein interface- IntStream
- Overrides:
- getSourceNamein class- ANTLRInputStream
 
 
- 
 
-