org.w3c.tidy

Class StreamInJavaImpl

Implemented Interfaces:
StreamIn

public class StreamInJavaImpl
extends java.lang.Object
implements StreamIn

StreamIn Implementation using java writers.
Version:
$Revision: 807 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Fields inherited from interface org.w3c.tidy.StreamIn

END_OF_STREAM

Constructor Summary

StreamInJavaImpl(InputStream stream, String encoding, int tabsize)
Instantiates a new StreamInJavaImpl.
StreamInJavaImpl(Reader reader, int tabsize)
Instantiates a new StreamInJavaImpl.

Method Summary

int
getCurcol()
Getter for curcol.
int
getCurline()
Getter for curline.
boolean
isEndOfStream()
int
readChar()
int
readCharFromStream()
void
setLexer(Lexer lexer)
void
ungetChar(int c)

Constructor Details

StreamInJavaImpl

protected StreamInJavaImpl(InputStream stream,
                           String encoding,
                           int tabsize)
            throws UnsupportedEncodingException
Instantiates a new StreamInJavaImpl.
Parameters:
stream -
encoding -
tabsize -

StreamInJavaImpl

protected StreamInJavaImpl(Reader reader,
                           int tabsize)
Instantiates a new StreamInJavaImpl.
Parameters:
tabsize -

Method Details

getCurcol

public int getCurcol()
Getter for curcol.
Specified by:
getCurcol in interface StreamIn
Returns:
Returns the curcol.

getCurline

public int getCurline()
Getter for curline.
Specified by:
getCurline in interface StreamIn
Returns:
Returns the curline.

isEndOfStream

public boolean isEndOfStream()
Specified by:
isEndOfStream in interface StreamIn

readChar

public int readChar()
Specified by:
readChar in interface StreamIn

readCharFromStream

public int readCharFromStream()
Specified by:
readCharFromStream in interface StreamIn

setLexer

public void setLexer(Lexer lexer)
Specified by:
setLexer in interface StreamIn

ungetChar

public void ungetChar(int c)
Specified by:
ungetChar in interface StreamIn