|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tidy.StreamInJavaImpl
public class StreamInJavaImpl
StreamIn Implementation using java writers.
Field Summary |
---|
Fields inherited from interface org.w3c.tidy.StreamIn |
---|
END_OF_STREAM |
Constructor Summary | |
---|---|
protected |
StreamInJavaImpl(java.io.InputStream stream,
java.lang.String encoding,
int tabsize)
Instantiates a new StreamInJavaImpl. |
protected |
StreamInJavaImpl(java.io.Reader reader,
int tabsize)
Instantiates a new StreamInJavaImpl. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StreamInJavaImpl(java.io.InputStream stream, java.lang.String encoding, int tabsize) throws java.io.UnsupportedEncodingException
stream
- encoding
- tabsize
-
java.io.UnsupportedEncodingException
protected StreamInJavaImpl(java.io.Reader reader, int tabsize)
stream
- encoding
- tabsize
- Method Detail |
---|
public int readCharFromStream()
StreamIn
readCharFromStream
in interface StreamIn
StreamIn.readCharFromStream()
public int readChar()
StreamIn
readChar
in interface StreamIn
StreamIn.readChar()
public void ungetChar(int c)
StreamIn
ungetChar
in interface StreamIn
c
- charStreamIn.ungetChar(int)
public boolean isEndOfStream()
StreamIn
isEndOfStream
in interface StreamIn
true
if end of stream has been reachedStreamIn.isEndOfStream()
public int getCurcol()
curcol
.
getCurcol
in interface StreamIn
public int getCurline()
curline
.
getCurline
in interface StreamIn
public void setLexer(Lexer lexer)
StreamIn
setLexer
in interface StreamIn
lexer
- LexerStreamIn.setLexer(org.w3c.tidy.Lexer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |