org.codehaus.jettison.badgerfish
Class BadgerFishXMLStreamReader
java.lang.Object
org.codehaus.jettison.AbstractXMLStreamReader
org.codehaus.jettison.badgerfish.BadgerFishXMLStreamReader
- All Implemented Interfaces:
- javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader
public class BadgerFishXMLStreamReader
- extends AbstractXMLStreamReader
Fields inherited from interface javax.xml.stream.XMLStreamConstants |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
Methods inherited from class org.codehaus.jettison.AbstractXMLStreamReader |
getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeValue, getAttributeValue, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONVENTION
private static final BadgerFishConvention CONVENTION
nodes
private FastStack nodes
currentText
private java.lang.String currentText
BadgerFishXMLStreamReader
public BadgerFishXMLStreamReader(JSONObject obj)
throws JSONException,
javax.xml.stream.XMLStreamException
- Throws:
JSONException
javax.xml.stream.XMLStreamException
next
public int next()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
processElement
private void processElement()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
processKey
private void processKey(java.lang.String nextKey,
java.lang.Object newObj)
throws JSONException,
javax.xml.stream.XMLStreamException
- Throws:
JSONException
javax.xml.stream.XMLStreamException
close
public void close()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getAttributeType
public java.lang.String getAttributeType(int arg0)
- Specified by:
getAttributeType
in interface javax.xml.stream.XMLStreamReader
- Overrides:
getAttributeType
in class AbstractXMLStreamReader
getCharacterEncodingScheme
public java.lang.String getCharacterEncodingScheme()
- Specified by:
getCharacterEncodingScheme
in interface javax.xml.stream.XMLStreamReader
- Overrides:
getCharacterEncodingScheme
in class AbstractXMLStreamReader
getElementText
public java.lang.String getElementText()
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getText
public java.lang.String getText()