com.bluecast.xml
Class XMLReaderReader
public final class XMLReaderReader
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.
- Yuval Oren, yuval@bluecast.com
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.
|
XMLReaderReader
public XMLReaderReader()
Create an XMLReaderReader without providing an input Reader yet.
You must call reset() before using.
XMLReaderReader
public XMLReaderReader(Reader in)
throws IOException
Creates an XMLReaderReader and resets the reader position
after reading the XML declaration.
XMLReaderReader
public XMLReaderReader(Reader in,
boolean rewindDeclaration)
throws IOException
Creates an XMLReaderReader.
in
- the input sourcerewindDeclaration
- a value of false will skip past any
XML declaration. True will dish out the entire document.
close
public void close()
throws IOException
mark
public void mark(int readAheadLimit)
throws IOException
markSupported
public boolean markSupported()
read
public int read()
throws IOException
read
public int read(char[] destbuf)
throws IOException
read
public int read(char[] destbuf,
int off,
int len)
throws IOException
ready
public boolean ready()
throws IOException
reset
public void reset()
throws IOException
reset
public void reset(Reader in,
boolean rewindDeclaration)
throws IOException
skip
public long skip(long n)
throws IOException