Package com.fasterxml.aalto.dom
Class DOMReaderImpl
- java.lang.Object
-
- org.codehaus.stax2.ri.dom.DOMWrappingReader
-
- com.fasterxml.aalto.dom.DOMReaderImpl
-
- All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
,javax.xml.stream.XMLStreamConstants
,javax.xml.stream.XMLStreamReader
,org.codehaus.stax2.AttributeInfo
,org.codehaus.stax2.DTDInfo
,org.codehaus.stax2.LocationInfo
,org.codehaus.stax2.typed.TypedXMLStreamReader
,org.codehaus.stax2.validation.Validatable
,org.codehaus.stax2.XMLStreamReader2
public class DOMReaderImpl extends org.codehaus.stax2.ri.dom.DOMWrappingReader
Concrete DOM-backed implementation, based on the Stax2 reference implementation's default implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected ReaderConfig
_config
-
Fields inherited from class org.codehaus.stax2.ri.dom.DOMWrappingReader
_attrList, _base64Decoder, _cfgInternNames, _cfgInternNsURIs, _cfgNsAware, _coalescedText, _coalescing, _currEvent, _currNode, _decoderFactory, _depth, _nsDeclList, _rootNode, _systemId, _textBuffer, ERR_STATE_NO_LOCALNAME, ERR_STATE_NOT_ELEM, ERR_STATE_NOT_PI, ERR_STATE_NOT_START_ELEM, ERR_STATE_NOT_TEXTUAL, ERR_STATE_NOT_TEXTUAL_OR_ELEM, ERR_STATE_NOT_TEXTUAL_XXX, INT_SPACE, MASK_TYPED_ACCESS_BINARY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DOMReaderImpl(javax.xml.transform.dom.DOMSource src, ReaderConfig cfg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DOMReaderImpl
createFrom(javax.xml.transform.dom.DOMSource src, ReaderConfig cfg)
java.lang.Object
getProperty(java.lang.String name)
boolean
isPropertySupported(java.lang.String name)
boolean
setProperty(java.lang.String name, java.lang.Object value)
protected void
throwStreamException(java.lang.String msg, javax.xml.stream.Location loc)
-
Methods inherited from class org.codehaus.stax2.ri.dom.DOMWrappingReader
_base64Decoder, _constructTypeException, _constructTypeException, _decoderFactory, _getAttributeAsArray, _internName, _internNsURI, close, closeCompletely, coalesceText, findAttributeIndex, findErrorDesc, getAttributeAs, getAttributeAsArray, getAttributeAsBinary, getAttributeAsBinary, getAttributeAsBoolean, getAttributeAsDecimal, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLongArray, getAttributeAsQName, getAttributeCount, getAttributeIndex, getAttributeInfo, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getCurrentLocation, getDepth, getDTDInfo, getDTDInternalSubset, getDTDPublicId, getDTDRootName, getDTDSystemId, getElementAs, getElementAsBinary, getElementAsBinary, getElementAsBoolean, getElementAsDecimal, getElementAsDouble, getElementAsFloat, getElementAsInt, getElementAsInteger, getElementAsLong, getElementAsQName, getElementText, getEncoding, getEndingByteOffset, getEndingCharOffset, getEndLocation, getErrorLocation, getEventType, getFeature, getIdAttributeIndex, getLocalName, getLocation, getLocationInfo, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getNonTransientNamespaceContext, getNotationAttributeIndex, getPIData, getPITarget, getPrefix, getPrefix, getPrefixedName, getPrefixes, getProcessedDTD, getProcessedDTDSchema, getStartingByteOffset, getStartingCharOffset, getStartLocation, getText, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEmptyElement, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, readElementAsArray, readElementAsBinary, readElementAsBinary, readElementAsDoubleArray, readElementAsFloatArray, readElementAsIntArray, readElementAsLongArray, reportParseProblem, reportWrongState, require, setFeature, setInternNames, setInternNsURIs, setValidationProblemHandler, skipElement, standaloneSet, stopValidatingAgainst, stopValidatingAgainst, throwStreamException, validateAgainst
-
-
-
-
Field Detail
-
_config
protected final ReaderConfig _config
-
-
Constructor Detail
-
DOMReaderImpl
protected DOMReaderImpl(javax.xml.transform.dom.DOMSource src, ReaderConfig cfg) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
-
Method Detail
-
createFrom
public static DOMReaderImpl createFrom(javax.xml.transform.dom.DOMSource src, ReaderConfig cfg) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
isPropertySupported
public boolean isPropertySupported(java.lang.String name)
- Specified by:
isPropertySupported
in interfaceorg.codehaus.stax2.XMLStreamReader2
- Specified by:
isPropertySupported
in classorg.codehaus.stax2.ri.dom.DOMWrappingReader
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in interfacejavax.xml.stream.XMLStreamReader
- Specified by:
getProperty
in classorg.codehaus.stax2.ri.dom.DOMWrappingReader
-
setProperty
public boolean setProperty(java.lang.String name, java.lang.Object value)
- Specified by:
setProperty
in interfaceorg.codehaus.stax2.XMLStreamReader2
- Specified by:
setProperty
in classorg.codehaus.stax2.ri.dom.DOMWrappingReader
-
throwStreamException
protected void throwStreamException(java.lang.String msg, javax.xml.stream.Location loc) throws javax.xml.stream.XMLStreamException
- Specified by:
throwStreamException
in classorg.codehaus.stax2.ri.dom.DOMWrappingReader
- Throws:
javax.xml.stream.XMLStreamException
-
-