org.w3c.tidy

Interface StreamIn

Known Implementing Classes:
StreamInJavaImpl

public interface StreamIn

Input Stream.
Version:
$Revision: 587 $ ($Author: fgiust $)
Authors:
Dave Raggett dsr@w3.org
Andy Quick ac.quick@sympatico.ca (translation to Java)
Fabrizio Giustina

Field Summary

static int
END_OF_STREAM
end of stream char.

Method Summary

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.

Field Details

END_OF_STREAM

public static final int END_OF_STREAM
end of stream char.
Field Value:
-1

Method Details

getCurcol

public int getCurcol()
Getter for curcol.
Returns:
Returns the curcol.

getCurline

public int getCurline()
Getter for curline.
Returns:
Returns the curline.

isEndOfStream

public boolean isEndOfStream()
Has end of stream been reached?
Returns:
true if end of stream has been reached

readChar

public int readChar()
Read a char.
Returns:
char

readCharFromStream

public int readCharFromStream()
reads a char from the stream.
Returns:
char

setLexer

public void setLexer(Lexer lexer)
Setter for lexer instance (needed for error reporting).
Parameters:
lexer - Lexer

ungetChar

public void ungetChar(int c)
Unget a char.
Parameters:
c - char