Class XmlReader
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.xml.read.XmlReader
-
public class XmlReader extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlReader(InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanelementNameIs(String name)StringgetAttribute(String name)StringgetName()StringgetNextElementText(String elementName)XMLEventgetPeek()StringgetText()booleanisEnd()booleanisStart()booleanisText()voidproceedToNextElement()voidproceedToTheNextStartElement()
-
-
-
Constructor Detail
-
XmlReader
public XmlReader(InputStream stream) throws XMLStreamException
- Throws:
XMLStreamException
-
-
Method Detail
-
isStart
public boolean isStart() throws XmlReaderException- Throws:
XmlReaderException
-
proceedToTheNextStartElement
public void proceedToTheNextStartElement() throws XmlReaderException- Throws:
XmlReaderException
-
isEnd
public boolean isEnd() throws XmlReaderException- Throws:
XmlReaderException
-
getAttribute
public String getAttribute(String name) throws XmlReaderException
- Throws:
XmlReaderException
-
isText
public boolean isText() throws XmlReaderException- Throws:
XmlReaderException
-
getText
public String getText() throws XmlReaderException
- Throws:
XmlReaderException
-
getNextElementText
public String getNextElementText(String elementName) throws XmlReaderException
- Throws:
XmlReaderException
-
proceedToNextElement
public void proceedToNextElement() throws XmlReaderException- Throws:
XmlReaderException
-
elementNameIs
public boolean elementNameIs(String name) throws XmlReaderException
- Throws:
XmlReaderException
-
getPeek
public XMLEvent getPeek() throws XmlReaderException
- Throws:
XmlReaderException
-
getName
public String getName() throws XmlReaderException
- Throws:
XmlReaderException
-
-