Example usage for Java org.antlr.v4.runtime CharStreams fields, constructors, methods, implement or subclass
The text is from its open source code.
CharStream | fromFileName(String fileName) Creates a CharStream given a string containing a path to a UTF-8 file on disk. |
CharStream | fromPath(Path path) Creates a CharStream given a path to a UTF-8 encoded file on disk. |
CharStream | fromPath(Path path, Charset charset) Creates a CharStream given a path to a file on disk and the charset of the bytes contained in the file. |
CodePointCharStream | fromReader(Reader r) Creates a CharStream given a Reader . |
CodePointCharStream | fromReader(Reader r, String sourceName) Creates a CharStream given a Reader and its source name. |
CharStream | fromStream(InputStream is) Creates a CharStream given an opened InputStream containing UTF-8 bytes. |
CharStream | fromStream(InputStream is, Charset charset) Creates a CharStream given an opened InputStream and the charset of the bytes contained in the stream. |
CodePointCharStream | fromString(String s) Creates a CharStream given a String . |
CodePointCharStream | fromString(String s, String sourceName) Creates a CharStream given a String and the sourceName from which it came. |