CharStreams
interface.public class ANTLRFileStream extends ANTLRInputStream
ANTLRInputStream
that is loaded from a file all at once
when you construct the object.Modifier and Type | Field and Description |
---|---|
protected String |
fileName
Deprecated.
|
data, INITIAL_BUFFER_SIZE, n, name, p, READ_BUFFER_SIZE
EOF, UNKNOWN_SOURCE_NAME
Constructor and Description |
---|
ANTLRFileStream(String fileName)
Deprecated.
|
ANTLRFileStream(String fileName,
String encoding)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getSourceName()
Deprecated.
Gets the name of the underlying symbol source.
|
void |
load(String fileName,
String encoding)
Deprecated.
|
protected String fileName
public ANTLRFileStream(String fileName) throws IOException
IOException
public ANTLRFileStream(String fileName, String encoding) throws IOException
IOException
public void load(String fileName, String encoding) throws IOException
IOException
public String getSourceName()
IntStream
IntStream.UNKNOWN_SOURCE_NAME
.getSourceName
in interface IntStream
getSourceName
in class ANTLRInputStream
Copyright © 1992–2021 ANTLR. All rights reserved.