END_OF_STREAM| Modifier | Constructor and Description |
|---|---|
protected |
StreamInJavaImpl(java.io.InputStream stream,
java.lang.String encoding,
int tabsize)
Instantiates a new StreamInJavaImpl.
|
protected |
StreamInJavaImpl(java.io.Reader reader,
int tabsize)
Instantiates a new StreamInJavaImpl.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCurcol()
Getter for
curcol. |
int |
getCurline()
Getter for
curline. |
boolean |
isEndOfStream()
Has end of stream been reached?
|
int |
readChar()
Read a char.
|
int |
readCharFromStream()
reads a char from the stream.
|
void |
setLexer(Lexer lexer)
Setter for lexer instance (needed for error reporting).
|
void |
ungetChar(int c)
Unget a char.
|
protected StreamInJavaImpl(java.io.InputStream stream,
java.lang.String encoding,
int tabsize)
throws java.io.UnsupportedEncodingException
stream - encoding - tabsize - java.io.UnsupportedEncodingExceptionprotected StreamInJavaImpl(java.io.Reader reader,
int tabsize)
stream - encoding - tabsize - public int readCharFromStream()
StreamInreadCharFromStream in interface StreamInStreamIn.readCharFromStream()public int readChar()
StreamInreadChar in interface StreamInStreamIn.readChar()public void ungetChar(int c)
StreamInungetChar in interface StreamInc - charStreamIn.ungetChar(int)public boolean isEndOfStream()
StreamInisEndOfStream in interface StreamIntrue if end of stream has been reachedStreamIn.isEndOfStream()public int getCurcol()
curcol.public int getCurline()
curline.getCurline in interface StreamInpublic void setLexer(Lexer lexer)
StreamInsetLexer in interface StreamInlexer - LexerStreamIn.setLexer(org.w3c.tidy.Lexer)