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 Closeable
close
in interface AutoCloseable
close
in class InputStreamReader
public boolean markSupported()
markSupported
in class Reader
public XMLElement onElementEnd(@Nonnull XMLElement element)
onElementEnd
in interface XMLElement.Handler
element
- The element.public XMLElement onElementStart(@Nonnull XMLElement element)
onElementStart
in interface XMLElement.Handler
element
- The element.public int read() throws IOException
read
in class InputStreamReader
IOException
public int read(char[] buffer, int offset, int length)
read
in class InputStreamReader
public boolean ready() throws IOException
ready
in class InputStreamReader
IOException
public void reset()
reset
in class Reader
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.