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.UnsupportedEncodingException
protected StreamInJavaImpl(java.io.Reader reader, int tabsize)
stream
- encoding
- tabsize
- public int readCharFromStream()
StreamIn
readCharFromStream
in interface StreamIn
StreamIn.readCharFromStream()
public int readChar()
StreamIn
readChar
in interface StreamIn
StreamIn.readChar()
public void ungetChar(int c)
StreamIn
ungetChar
in interface StreamIn
c
- charStreamIn.ungetChar(int)
public boolean isEndOfStream()
StreamIn
isEndOfStream
in interface StreamIn
true
if end of stream has been reachedStreamIn.isEndOfStream()
public int getCurcol()
curcol
.public int getCurline()
curline
.getCurline
in interface StreamIn
public void setLexer(Lexer lexer)
StreamIn
setLexer
in interface StreamIn
lexer
- LexerStreamIn.setLexer(org.w3c.tidy.Lexer)