org.ajax4jsf.org.w3c.tidy
Class StreamInJavaImpl

java.lang.Object
  extended by org.ajax4jsf.org.w3c.tidy.StreamInJavaImpl
All Implemented Interfaces:
StreamIn

public class StreamInJavaImpl
extends java.lang.Object
implements StreamIn

StreamIn Implementation using java writers.

Version:
$Revision: 1.1.2.1 $ ($Author: alexsmirnov $)
Author:
Fabrizio Giustina

Field Summary
 
Fields inherited from interface org.ajax4jsf.org.w3c.tidy.StreamIn
END_OF_STREAM
 
Constructor Summary
StreamInJavaImpl(java.io.InputStream stream, java.lang.String encoding, int tabsize)
          Instantiates a new StreamInJavaImpl.
StreamInJavaImpl(java.io.Reader in, int tabsize)
           
StreamInJavaImpl(java.lang.String content, int tabsize)
           
 
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

StreamInJavaImpl

public StreamInJavaImpl(java.io.Reader in,
                        int tabsize)

StreamInJavaImpl

public StreamInJavaImpl(java.lang.String content,
                        int tabsize)
Parameters:
content -
tabsize -
Throws:
java.io.UnsupportedEncodingException

StreamInJavaImpl

public StreamInJavaImpl(java.io.InputStream stream,
                        java.lang.String encoding,
                        int tabsize)
                 throws java.io.UnsupportedEncodingException
Instantiates a new StreamInJavaImpl.

Parameters:
stream -
encoding -
tabsize -
Throws:
java.io.UnsupportedEncodingException
Method Detail

readCharFromStream

public int readCharFromStream()
Description copied from interface: StreamIn
reads a char from the stream.

Specified by:
readCharFromStream in interface StreamIn
Returns:
char
See Also:
StreamIn.readCharFromStream()

readChar

public int readChar()
Description copied from interface: StreamIn
Read a char.

Specified by:
readChar in interface StreamIn
Returns:
char
See Also:
StreamIn.readChar()

ungetChar

public void ungetChar(int c)
Description copied from interface: StreamIn
Unget a char.

Specified by:
ungetChar in interface StreamIn
Parameters:
c - char
See Also:
StreamIn.ungetChar(int)

isEndOfStream

public boolean isEndOfStream()
Description copied from interface: StreamIn
Has end of stream been reached?

Specified by:
isEndOfStream in interface StreamIn
Returns:
true if end of stream has been reached
See Also:
StreamIn.isEndOfStream()

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.

setLexer

public void setLexer(Lexer lexer)
Description copied from interface: StreamIn
Setter for lexer instance (needed for error reporting).

Specified by:
setLexer in interface StreamIn
Parameters:
lexer - Lexer
See Also:
StreamIn.setLexer(org.ajax4jsf.org.w3c.tidy.Lexer)


Copyright © 2010. All Rights Reserved.