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
ConstructorsModifierConstructorDescriptionprotectedStreamInJavaImpl(InputStream stream, String encoding, int tabsize) Instantiates a new StreamInJavaImpl.protectedStreamInJavaImpl(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:StreamInreads a char from the stream.- Specified by:
readCharFromStreamin interfaceStreamIn- Returns:
- char
- See Also:
-
readChar
public int readChar()Description copied from interface:StreamInRead a char. -
ungetChar
public void ungetChar(int c) Description copied from interface:StreamInUnget a char. -
isEndOfStream
public boolean isEndOfStream()Description copied from interface:StreamInHas end of stream been reached?- Specified by:
isEndOfStreamin interfaceStreamIn- Returns:
trueif end of stream has been reached- See Also:
-
getCurcol
public int getCurcol()Getter forcurcol. -
getCurline
public int getCurline()Getter forcurline.- Specified by:
getCurlinein interfaceStreamIn- Returns:
- Returns the curline.
-
setLexer
Description copied from interface:StreamInSetter for lexer instance (needed for error reporting).
-