|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ajax4jsf.org.w3c.tidy.StreamInImpl
public class StreamInImpl
Input Stream Implementation. This implementation is from the c version of tidy and it doesn't take advantage of java readers.
| Field Summary |
|---|
| Fields inherited from interface org.ajax4jsf.org.w3c.tidy.StreamIn |
|---|
END_OF_STREAM |
| Constructor Summary | |
|---|---|
StreamInImpl(java.io.InputStream stream,
Configuration configuration)
Instatiates a new StreamInImpl. |
|
| 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. |
protected void |
readRawBytesFromStream(int[] buf,
int[] count,
boolean unget)
Read raw bytes from stream, return <= 0 if EOF; or if "unget" is true, Unget the bytes to re-synchronize the input stream Normally UTF-8 successor bytes are read using this routine. |
void |
setLexer(Lexer lexer)
Setter for lexer. |
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 |
|---|
public StreamInImpl(java.io.InputStream stream,
Configuration configuration)
stream - input streamconfiguration - Configuration| Method Detail |
|---|
public int getCurcol()
StreamIncurcol.
getCurcol in interface StreamInStreamIn.getCurcol()public int getCurline()
StreamIncurline.
getCurline in interface StreamInStreamIn.getCurline()public void setLexer(Lexer lexer)
lexer.
setLexer in interface StreamInlexer - The lexer to set.public int readChar()
StreamIn
readChar in interface StreamInStreamIn.readChar()public void ungetChar(int c)
StreamIn
ungetChar in interface StreamInc - charStreamIn.ungetChar(int)public boolean isEndOfStream()
StreamIn
isEndOfStream in interface StreamIntrue if end of stream has been reachedStreamIn.isEndOfStream()public int readCharFromStream()
StreamIn
readCharFromStream in interface StreamInStreamIn.readCharFromStream()
protected void readRawBytesFromStream(int[] buf,
int[] count,
boolean unget)
buf - character buffercount - number of bytes to readunget - unget bytes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||