public final class CssCharStream extends Object implements CharStream
| Modifier and Type | Field and Description |
|---|---|
int |
bufpos
Position in buffer.
|
static boolean |
staticFlag
Whether parser is static.
|
| Constructor and Description |
|---|
CssCharStream(Reader dstream,
int startline,
int startcolumn)
Constructor.
|
CssCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustBeginLineColumn(int newLine,
int newCol)
Method to adjust line and column numbers for the start of a token.
|
void |
backup(int amount)
Backup a number of characters.
|
char |
BeginToken()
Start.
|
void |
Done()
Reset buffer when finished.
|
int |
getBeginColumn()
Get token beginning column number.
|
int |
getBeginLine()
Get token beginning line number.
|
int |
getColumn()
Deprecated.
|
int |
getEndColumn()
Get token end column number.
|
int |
getEndLine()
Get token end line number.
|
String |
GetImage()
Get token literal value.
|
int |
getLine()
Deprecated.
|
char[] |
GetSuffix(int len)
Get the suffix.
|
int |
getTabSize() |
boolean |
getTrackLineColumn() |
char |
readChar()
Read a character.
|
void |
setTabSize(int i) |
void |
setTrackLineColumn(boolean tlc) |
public static final boolean staticFlag
public int bufpos
public CssCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
public CssCharStream(Reader dstream, int startline, int startcolumn)
public final char BeginToken()
throws IOException
BeginToken in interface CharStreamIOExceptionpublic final char readChar()
throws IOException
readChar in interface CharStreamIOException@Deprecated public final int getColumn()
CharStreamgetColumn in interface CharStreamCharStream.getEndColumn()@Deprecated public final int getLine()
CharStreamgetLine in interface CharStreamCharStream.getEndLine()public final int getEndColumn()
getEndColumn in interface CharStreampublic final int getEndLine()
getEndLine in interface CharStreampublic final int getBeginColumn()
getBeginColumn in interface CharStreampublic final int getBeginLine()
getBeginLine in interface CharStreampublic final void backup(int amount)
backup in interface CharStreampublic final String GetImage()
GetImage in interface CharStreampublic final char[] GetSuffix(int len)
GetSuffix in interface CharStreampublic void Done()
Done in interface CharStreampublic void adjustBeginLineColumn(int newLine,
int newCol)
public void setTabSize(int i)
setTabSize in interface CharStreampublic int getTabSize()
getTabSize in interface CharStreampublic boolean getTrackLineColumn()
getTrackLineColumn in interface CharStreampublic void setTrackLineColumn(boolean tlc)
setTrackLineColumn in interface CharStreamCopyright © 1999–2022. All rights reserved.