Method Summary |
|
public void | close() Closes this reader and its underlying input then
XMLObjectReader.reset reset this reader for potential reuse. |
public XMLStreamReader | getStreamReader() Returns the stream reader being used by this reader (it can be
used to set prefix, read prologs, etc). |
public boolean | hasNext() Indicates if more elements can be read. |
public static XMLObjectReader | newInstance(InputStream in) Returns a XML object reader (potentially recycled) having the specified
input stream as input. |
public static XMLObjectReader | newInstance(InputStream in, String encoding) Returns a XML object reader (potentially recycled) having the specified
input stream/encoding as input. |
public static XMLObjectReader | newInstance(Reader in) Returns a XML object reader (potentially recycled) having the specified
reader as input. |
public Object | read() Returns the object corresponding to the next element/data. |
public Object | read(String name) Returns the object corresponding to the next nested element only
if it has the specified local name. |
public Object | read(String localName, String uri) Returns the object corresponding to the next nested element only
if it has the specified local name and namespace URI.
Parameters: localName - the local name. Parameters: uri - the namespace URI. |
public Object | read(String name, Class cls) Returns the object corresponding to the next nested element only
if it has the specified local name; the actual object type is identified
by the specified class parameter. |
public Object | read(String localName, String uri, Class cls) Returns the object corresponding to the next nested element only
if it has the specified local name and namespace URI; the
actual object type is identified by the specified class parameter. |
public void | reset() Resets this object reader for reuse. |
public XMLObjectReader | setBinding(XMLBinding binding) Sets the XML binding to use with this object reader.
Parameters: binding - the XML binding to use. |
public XMLObjectReader | setInput(InputStream in) Sets the input stream source for this XML object reader
(encoding retrieved from XML prolog if any).
Parameters: in - the source input stream. |
public XMLObjectReader | setInput(InputStream in, String encoding) Sets the input stream source and encoding for this XML object reader.
Parameters: in - the input source. Parameters: encoding - the associated encoding. |
public XMLObjectReader | setInput(Reader in) Sets the reader input source for this XML stream reader. |
public XMLObjectReader | setReferenceResolver(XMLReferenceResolver referenceResolver) Sets the XML reference resolver to use with this object reader
(the same resolver can be used accross multiple readers).
Parameters: referenceResolver - the XML reference resolver. |