Package org.w3c.tidy
Interface StreamIn
-
- All Known Implementing Classes:
StreamInJavaImpl
public interface StreamInInput Stream.- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
-
Field Summary
Fields Modifier and Type Field Description static intEND_OF_STREAMend of stream char.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCurcol()Getter forcurcol.intgetCurline()Getter forcurline.booleanisEndOfStream()Has end of stream been reached?intreadChar()Read a char.intreadCharFromStream()reads a char from the stream.voidsetLexer(Lexer lexer)Setter for lexer instance (needed for error reporting).voidungetChar(int c)Unget a char.
-
-
-
Field Detail
-
END_OF_STREAM
static final int END_OF_STREAM
end of stream char.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurcol
int getCurcol()
Getter forcurcol.- Returns:
- Returns the curcol.
-
getCurline
int getCurline()
Getter forcurline.- Returns:
- Returns the curline.
-
readCharFromStream
int readCharFromStream()
reads a char from the stream.- Returns:
- char
-
readChar
int readChar()
Read a char.- Returns:
- char
-
ungetChar
void ungetChar(int c)
Unget a char.- Parameters:
c- char
-
isEndOfStream
boolean isEndOfStream()
Has end of stream been reached?- Returns:
trueif end of stream has been reached
-
setLexer
void setLexer(Lexer lexer)
Setter for lexer instance (needed for error reporting).- Parameters:
lexer- Lexer
-
-