com.bluecast.xml
Class XMLReaderReader
java.lang.Object
|
+--java.io.Reader
|
+--com.bluecast.xml.XMLInputReader
|
+--com.bluecast.xml.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.1 $
- Author:
- Yuval Oren, yuval@bluecast.com
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
XMLReaderReader()
Create an XMLReaderReader without providing an input Reader yet. |
XMLReaderReader(java.io.Reader in)
Creates an XMLReaderReader and resets the reader position
after reading the XML declaration. |
XMLReaderReader(java.io.Reader in,
boolean rewindDeclaration)
Creates an XMLReaderReader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReaderReader
public XMLReaderReader()
- Create an XMLReaderReader without providing an input Reader yet.
You must call reset() before using.
XMLReaderReader
public XMLReaderReader(java.io.Reader in)
throws java.io.IOException
- Creates an XMLReaderReader and resets the reader position
after reading the XML declaration.
- Parameters:
in
- the input source
XMLReaderReader
public XMLReaderReader(java.io.Reader in,
boolean rewindDeclaration)
throws java.io.IOException
- Creates an XMLReaderReader.
- Parameters:
in
- the input sourcerewindDeclaration
- a value of false will skip past any
XML declaration. True will dish out the entire document.
reset
public void reset(java.io.Reader in,
boolean rewindDeclaration)
throws java.io.IOException
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in class java.io.Reader
java.io.IOException
mark
public void mark(int readAheadLimit)
throws java.io.IOException
- Overrides:
mark
in class java.io.Reader
java.io.IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.Reader
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
java.io.IOException
read
public int read(char[] destbuf)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
java.io.IOException
read
public int read(char[] destbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
read
in class java.io.Reader
java.io.IOException
ready
public boolean ready()
throws java.io.IOException
- Overrides:
ready
in class java.io.Reader
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.Reader
java.io.IOException
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
skip
in class java.io.Reader
java.io.IOException