Package org.w3c.tidy
Class StreamInJavaImpl
java.lang.Object
org.w3c.tidy.StreamInJavaImpl
- All Implemented Interfaces:
StreamIn
StreamIn Implementation using java writers.
- Version:
- $Revision: 1095 $ ($Author: aditsu $)
- Author:
- Fabrizio Giustina
-
Field Summary
Fields inherited from interface org.w3c.tidy.StreamIn
END_OF_STREAM
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StreamInJavaImpl
(InputStream stream, String encoding, int tabsize) Instantiates a new StreamInJavaImpl.protected
StreamInJavaImpl
(Reader reader, int tabsize) Instantiates a new StreamInJavaImpl. -
Method Summary
-
Constructor Details
-
StreamInJavaImpl
protected StreamInJavaImpl(InputStream stream, String encoding, int tabsize) throws UnsupportedEncodingException Instantiates a new StreamInJavaImpl.- Parameters:
stream
-encoding
-tabsize
-- Throws:
UnsupportedEncodingException
-
StreamInJavaImpl
Instantiates a new StreamInJavaImpl.- Parameters:
tabsize
-stream
-encoding
-
-
-
Method Details
-
readCharFromStream
public int readCharFromStream()Description copied from interface:StreamIn
reads a char from the stream.- Specified by:
readCharFromStream
in interfaceStreamIn
- Returns:
- char
- See Also:
-
readChar
public int readChar()Description copied from interface:StreamIn
Read a char. -
ungetChar
public void ungetChar(int c) Description copied from interface:StreamIn
Unget a char. -
isEndOfStream
public boolean isEndOfStream()Description copied from interface:StreamIn
Has end of stream been reached?- Specified by:
isEndOfStream
in interfaceStreamIn
- Returns:
true
if end of stream has been reached- See Also:
-
getCurcol
public int getCurcol()Getter forcurcol
. -
getCurline
public int getCurline()Getter forcurline
.- Specified by:
getCurline
in interfaceStreamIn
- Returns:
- Returns the curline.
-
setLexer
Description copied from interface:StreamIn
Setter for lexer instance (needed for error reporting).
-