Class StreamInJavaImpl
java.lang.Object
org.w3c.tidy.StreamInJavaImpl
- All Implemented Interfaces:
StreamIn
-
Field Summary
Fields inherited from interface 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- the stream to read fromencoding- the streams text encodingtabsize- the tab size- Throws:
UnsupportedEncodingException- if encoding not supported
-
StreamInJavaImpl
Instantiates a new StreamInJavaImpl.- Parameters:
reader- the readertabsize- the tab size
-
-
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
-
ungetChar
-
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
-
getCurline
public int getCurline()Getter forcurline.- Specified by:
getCurlinein interfaceStreamIn- Returns:
- Returns the curline.
-
setLexer
-