public class InputLexerSource extends LexerSource
Source which lexes an InputStream.
The input is buffered.Source| Constructor and Description |
|---|
InputLexerSource(java.io.InputStream input)
Deprecated.
|
InputLexerSource(java.io.InputStream input,
java.nio.charset.Charset charset)
Creates a new Source for lexing the given Reader.
|
InputLexerSource(java.io.Reader input) |
InputLexerSource(java.io.Reader input,
boolean ppvalid) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the human-readable name of the current Source.
|
java.lang.String |
getPath()
Returns the File currently being lexed.
|
java.lang.String |
toString() |
close, getColumn, getLine, toBufferedReader, token@Deprecated public InputLexerSource(@Nonnull java.io.InputStream input)
public InputLexerSource(@Nonnull java.io.InputStream input, java.nio.charset.Charset charset)
public InputLexerSource(@Nonnull java.io.Reader input, boolean ppvalid)
public InputLexerSource(@Nonnull java.io.Reader input)
public java.lang.String getPath()
SourceFileLexerSource, then
it will ask the parent Source, and so forth recursively.
If no Source on the stack is a FileLexerSource, returns null.public java.lang.String getName()
Sourcepublic java.lang.String toString()
toString in class java.lang.Object