Java.target.apidocs.org.antlr.v4.runtime.ANTLRFileStream.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
ANTLRFileStream (ANTLR 4 Runtime (Optimized) 4.7.3 API)
org.antlr.v4.runtime
Class ANTLRFileStream
- java.lang.Object
-
- org.antlr.v4.runtime.ANTLRInputStream
-
- org.antlr.v4.runtime.ANTLRFileStream
-
- All Implemented Interfaces:
- CharStream, IntStream, UnicodeCharStream
Deprecated.
as of 4.7 Please use CharStreams
interface.
@Deprecated
public class ANTLRFileStream
extends ANTLRInputStream
This is an ANTLRInputStream
that is loaded from a file all at once
when you construct the object.
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected 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 and Description
ANTLRFileStream(String fileName)
Deprecated.
ANTLRFileStream(String fileName,
String encoding)
Deprecated.
-
Method Summary
Methods
Modifier and Type
Method and Description
String
getSourceName()
Deprecated.
Gets the name of the underlying symbol source.
void
load(String fileName,
String encoding)
Deprecated.
-
-
Field Detail
-
fileName
protected String fileName
Deprecated.
-
Constructor Detail
-
ANTLRFileStream
public ANTLRFileStream(@NotNull
String fileName)
throws IOException
Deprecated.
- Throws:
IOException
-
ANTLRFileStream
public ANTLRFileStream(@NotNull
String fileName,
String encoding)
throws IOException
Deprecated.
- Throws:
IOException
-
Method Detail
-
load
public void load(@NotNull
String fileName,
@Nullable
String encoding)
throws IOException
Deprecated.
- Throws:
IOException
-
getSourceName
public 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
returns IntStream.UNKNOWN_SOURCE_NAME
.
- Specified by:
getSourceName
in interface IntStream
- Overrides:
getSourceName
in class ANTLRInputStream
Copyright © 1992–2019 Tunnel Vision Laboratories, LLC. All rights reserved.