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, resetInputpublic XMLReaderReader()
public XMLReaderReader(java.io.Reader in)
throws java.io.IOException
in - the input sourcejava.io.IOExceptionpublic 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.IOExceptionpublic void reset(java.io.Reader in,
boolean rewindDeclaration)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.Readerpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] destbuf)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] destbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOException