public static final class XMLDocument.ElementReader extends InputStreamReader implements XMLElement.Handler
| Constructor and Description |
|---|
ElementReader(InputStream input)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Ignores any close request.
|
boolean |
markSupported() |
XMLElement |
onElementEnd(XMLElement element)
Called on element end.
|
XMLElement |
onElementStart(XMLElement element)
Called on element start.
|
int |
read() |
int |
read(char[] buffer,
int offset,
int length) |
boolean |
ready() |
void |
reset() |
public ElementReader(@Nonnull
InputStream input)
input - The actual input stream.public void close()
Ignores any close request.
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamReaderpublic boolean markSupported()
markSupported in class Readerpublic XMLElement onElementEnd(@Nonnull XMLElement element)
onElementEnd in interface XMLElement.Handlerelement - The element.public XMLElement onElementStart(@Nonnull XMLElement element)
onElementStart in interface XMLElement.Handlerelement - The element.public int read()
throws IOException
read in class InputStreamReaderIOExceptionpublic int read(char[] buffer,
int offset,
int length)
read in class InputStreamReaderpublic boolean ready()
throws IOException
ready in class InputStreamReaderIOExceptionpublic void reset()
reset in class ReaderCopyright © 2003-2019 Serge Brisson. All Rights Reserved.