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 useCharStreams
interface.This is anANTLRInputStream
that is loaded from a file all at once when you construct the object.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
fileName
Deprecated.-
Fields inherited from class org.antlr.v4.runtime.ANTLRInputStream
data, INITIAL_BUFFER_SIZE, n, name, p, READ_BUFFER_SIZE
-
Fields inherited from interface org.antlr.v4.runtime.IntStream
EOF, UNKNOWN_SOURCE_NAME
-
-
Constructor Summary
Constructors Constructor Description ANTLRFileStream(java.lang.String fileName)
Deprecated.ANTLRFileStream(java.lang.String fileName, java.lang.String encoding)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getSourceName()
Deprecated.Gets the name of the underlying symbol source.void
load(java.lang.String fileName, java.lang.String encoding)
Deprecated.
-
-
-
Constructor Detail
-
ANTLRFileStream
public ANTLRFileStream(java.lang.String fileName) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
ANTLRFileStream
public ANTLRFileStream(java.lang.String fileName, java.lang.String encoding) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
load
public void load(java.lang.String fileName, java.lang.String encoding) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getSourceName
public java.lang.String getSourceName()
Deprecated.Description copied from interface:IntStream
Gets 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:
getSourceName
in interfaceIntStream
- Overrides:
getSourceName
in classANTLRInputStream
-
-