com.bluecast.xml

Class XMLReaderReader

public final class XMLReaderReader extends XMLInputReader

A Reader for XML documents and streams. This class prepares a Reader source for XML processing by converting CR/LF patterns to LF and by checking for illegal XML characters.

Version: $Revision: 1.5 $

Author: Yuval Oren, yuval@bluecast.com

Constructor Summary
XMLReaderReader()
Create an XMLReaderReader without providing an input Reader yet.
XMLReaderReader(Reader in)
Creates an XMLReaderReader and resets the reader position after reading the XML declaration.
XMLReaderReader(Reader in, boolean rewindDeclaration)
Creates an XMLReaderReader.
Method Summary
voidclose()
voidmark(int readAheadLimit)
booleanmarkSupported()
intread()
intread(char[] destbuf)
intread(char[] destbuf, int off, int len)
booleanready()
voidreset(Reader in, boolean rewindDeclaration)
voidreset()
longskip(long n)

Constructor Detail

XMLReaderReader

public XMLReaderReader()
Create an XMLReaderReader without providing an input Reader yet. You must call reset() before using.

XMLReaderReader

public XMLReaderReader(Reader in)
Creates an XMLReaderReader and resets the reader position after reading the XML declaration.

Parameters: in the input source

XMLReaderReader

public XMLReaderReader(Reader in, boolean rewindDeclaration)
Creates an XMLReaderReader.

Parameters: in the input source rewindDeclaration a value of false will skip past any XML declaration. True will dish out the entire document.

Method Detail

close

public void close()

mark

public void mark(int readAheadLimit)

markSupported

public boolean markSupported()

read

public int read()

read

public int read(char[] destbuf)

read

public int read(char[] destbuf, int off, int len)

ready

public boolean ready()

reset

public void reset(Reader in, boolean rewindDeclaration)

reset

public void reset()

skip

public long skip(long n)