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 |
data, INITIAL_BUFFER_SIZE, n, name, p, READ_BUFFER_SIZEEOF, UNKNOWN_SOURCE_NAME| Constructor and Description |
|---|
ANTLRFileStream(String fileName) |
ANTLRFileStream(String fileName,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSourceName()
Gets the name of the underlying symbol source.
|
void |
load(String fileName,
String encoding) |
protected String fileName
public ANTLRFileStream(String fileName) throws IOException
IOExceptionpublic ANTLRFileStream(String fileName, String encoding) throws IOException
IOExceptionpublic void load(String fileName, String encoding) throws IOException
IOExceptionpublic String getSourceName()
IntStreamIntStream.UNKNOWN_SOURCE_NAME.getSourceName in interface IntStreamgetSourceName in class ANTLRInputStreamCopyright © 1992-2013 ANTLR. All Rights Reserved.