Top Description Fields Constructors Methods
org.antlr.v4.runtime

public Class ANTLRFileStream

extends ANTLRInputStream
Class Inheritance
Annotations
@Deprecated
Imports
org.antlr.v4.runtime.misc.Utils, java.io.IOException

Deprecated

as of 4.7 Please use CharStreams interface.

This is an ANTLRInputStream that is loaded from a file all at once when you construct the object.

Field Summary

Modifier and TypeField and Description
protected String
Inherited from org.antlr.v4.runtime.ANTLRInputStream:
dataINITIAL_BUFFER_SIZEnnamepREAD_BUFFER_SIZE

Constructor Summary

AccessConstructor and Description
public
public
ANTLRFileStream(String fileName, String encoding)

Method Summary

Modifier and TypeMethod and Description
public String
getSourceName()

Overrides org.antlr.v4.runtime.ANTLRInputStream.getSourceName.

Implements org.antlr.v4.runtime.IntStream.getSourceName.

Gets the name of the underlying symbol source.
public void
load(String fileName, String encoding)

Inherited from org.antlr.v4.runtime.ANTLRInputStream:
consumegetTextindexLAloadLTmarkreleaseresetseeksizetoString

Field Detail

fileNameback to summary
protected String fileName

Constructor Detail

ANTLRFileStreamback to summary
public ANTLRFileStream(String fileName) throws IOException
ANTLRFileStreamback to summary
public ANTLRFileStream(String fileName, String encoding) throws IOException

Method Detail

getSourceNameback to summary
public String getSourceName()

Overrides org.antlr.v4.runtime.ANTLRInputStream.getSourceName.

Implements org.antlr.v4.runtime.IntStream.getSourceName.

Doc from org.antlr.v4.runtime.IntStream.getSourceName.

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 returns UNKNOWN_SOURCE_NAME.

Annotations
@Override
loadback to summary
public void load(String fileName, String encoding) throws IOException