public final class XMLReaderReader extends XMLInputReader
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] destbuf) |
int |
read(char[] destbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
void |
reset(java.io.Reader in,
boolean rewindDeclaration) |
long |
skip(long n) |
getXMLDeclaredEncoding, getXMLVersion, isXMLStandalone, isXMLStandaloneDeclared, parseXMLDeclaration, resetInput
public XMLReaderReader()
public XMLReaderReader(java.io.Reader in) throws java.io.IOException
in
- the input sourcejava.io.IOException
public XMLReaderReader(java.io.Reader in, boolean rewindDeclaration) throws java.io.IOException
in
- the input sourcerewindDeclaration
- a value of false will skip past any
XML declaration. True will dish out the entire document.java.io.IOException
public void reset(java.io.Reader in, boolean rewindDeclaration) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public void mark(int readAheadLimit) throws java.io.IOException
mark
in class java.io.Reader
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.Reader
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] destbuf) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] destbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public boolean ready() throws java.io.IOException
ready
in class java.io.Reader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException