Top Description Fields Constructors Methods
com.fasterxml.aalto.dom

public Class DOMReaderImpl

extends DOMWrappingReader
Class Inheritance
Imports
java.util.Collections, javax.xml.stream.*, javax.xml.transform.dom.DOMSource, org.codehaus.stax2.ri.dom.DOMWrappingReader, com.fasterxml.aalto.WFCException, com.fasterxml.aalto.in.ReaderConfig

Concrete DOM-backed implementation, based on the Stax2 reference implementation's default implementation.

Field Summary

Modifier and TypeField and Description
protected final ReaderConfig
Inherited from org.codehaus.stax2.ri.dom.DOMWrappingReader:
_attrList_base64Decoder_cfgInternNames_cfgInternNsURIs_cfgNsAware_coalescedText_coalescing_currEvent_currNode_decoderFactory_depth_nsDeclList_rootNode_systemId_textBufferERR_STATE_NO_LOCALNAMEERR_STATE_NOT_ELEMERR_STATE_NOT_PIERR_STATE_NOT_START_ELEMERR_STATE_NOT_TEXTUALERR_STATE_NOT_TEXTUAL_OR_ELEMERR_STATE_NOT_TEXTUAL_XXXINT_SPACEMASK_TYPED_ACCESS_BINARY

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static DOMReaderImpl
public Object
getProperty(String
The name of the property, may not be null
name
)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.getProperty.

Implements javax.xml.stream.XMLStreamReader.getProperty.

Get the value of a feature/property from the underlying implementation
public boolean
isPropertySupported(String name)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.isPropertySupported.

Implements org.codehaus.stax2.XMLStreamReader2.isPropertySupported.

Method similar to javax.xml.stream.XMLInputFactory#isPropertySupported, used to determine whether a property is supported by the Reader instance.
public boolean
setProperty(String
Name of the property to set
name
,
Object
Value to set property to.
value
)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.setProperty.

Implements org.codehaus.stax2.XMLStreamReader2.setProperty.

Method that can be used to set per-reader properties; a subset of properties one can set via matching org.codehaus.stax2.XMLInputFactory2 instance.
protected void
Inherited from org.codehaus.stax2.ri.dom.DOMWrappingReader:
_base64Decoder_constructTypeException_constructTypeException_decoderFactory_getAttributeAsArray_internName_internNsURIclosecloseCompletelycoalesceTextfindAttributeIndexfindErrorDescgetAttributeAsgetAttributeAsArraygetAttributeAsBinarygetAttributeAsBinarygetAttributeAsBooleangetAttributeAsDecimalgetAttributeAsDoublegetAttributeAsDoubleArraygetAttributeAsFloatgetAttributeAsFloatArraygetAttributeAsIntgetAttributeAsIntArraygetAttributeAsIntegergetAttributeAsLonggetAttributeAsLongArraygetAttributeAsQNamegetAttributeCountgetAttributeIndexgetAttributeInfogetAttributeLocalNamegetAttributeNamegetAttributeNamespacegetAttributePrefixgetAttributeTypegetAttributeValuegetAttributeValuegetCharacterEncodingSchemegetCurrentLocationgetDepthgetDTDInfogetDTDInternalSubsetgetDTDPublicIdgetDTDRootNamegetDTDSystemIdgetElementAsgetElementAsBinarygetElementAsBinarygetElementAsBooleangetElementAsDecimalgetElementAsDoublegetElementAsFloatgetElementAsIntgetElementAsIntegergetElementAsLonggetElementAsQNamegetElementTextgetEncodinggetEndingByteOffsetgetEndingCharOffsetgetEndLocationgetErrorLocationgetEventTypegetFeaturegetIdAttributeIndexgetLocalNamegetLocationgetLocationInfogetNamegetNamespaceContextgetNamespaceCountgetNamespacePrefixgetNamespaceURIgetNamespaceURIgetNamespaceURIgetNonTransientNamespaceContextgetNotationAttributeIndexgetPIDatagetPITargetgetPrefixgetPrefixgetPrefixedNamegetPrefixesgetProcessedDTDgetProcessedDTDSchemagetStartingByteOffsetgetStartingCharOffsetgetStartLocationgetTextgetTextgetTextCharactersgetTextCharactersgetTextLengthgetTextStartgetVersionhasNamehasNexthasTextisAttributeSpecifiedisCharactersisEmptyElementisEndElementisStandaloneisStartElementisWhiteSpacenextnextTagreadElementAsArrayreadElementAsBinaryreadElementAsBinaryreadElementAsDoubleArrayreadElementAsFloatArrayreadElementAsIntArrayreadElementAsLongArrayreportParseProblemreportWrongStaterequiresetFeaturesetInternNamessetInternNsURIssetValidationProblemHandlerskipElementstandaloneSetstopValidatingAgainststopValidatingAgainstthrowStreamExceptionvalidateAgainst

Field Detail

_configback to summary
protected final ReaderConfig _config

Constructor Detail

DOMReaderImplback to summary
protected DOMReaderImpl(DOMSource src, ReaderConfig cfg) throws XMLStreamException

Method Detail

createFromback to summary
public static DOMReaderImpl createFrom(DOMSource src, ReaderConfig cfg) throws XMLStreamException
getPropertyback to summary
public Object getProperty(String name)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.getProperty.

Implements javax.xml.stream.XMLStreamReader.getProperty.

Doc from javax.xml.stream.XMLStreamReader.getProperty.

Get the value of a feature/property from the underlying implementation

Parameters
name:String

The name of the property, may not be null

Returns:Object

The value of the property

Annotations
@Override
isPropertySupportedback to summary
public boolean isPropertySupported(String name)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.isPropertySupported.

Implements org.codehaus.stax2.XMLStreamReader2.isPropertySupported.

Doc from org.codehaus.stax2.XMLStreamReader2.isPropertySupported.

Method similar to javax.xml.stream.XMLInputFactory#isPropertySupported, used to determine whether a property is supported by the Reader instance. This means that this method may return false for some properties that the input factory does support: specifically, it should only return true if the value is mutable on per-instance basis. False means that either the property is not recognized, or is not mutable via reader instance.

Annotations
@Override
setPropertyback to summary
public boolean setProperty(String name, Object value)

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.setProperty.

Implements org.codehaus.stax2.XMLStreamReader2.setProperty.

Doc from org.codehaus.stax2.XMLStreamReader2.setProperty.

Method that can be used to set per-reader properties; a subset of properties one can set via matching org.codehaus.stax2.XMLInputFactory2 instance. Exactly which methods are mutable is implementation specific.

Parameters
name:String

Doc from org.codehaus.stax2.ri.dom.DOMWrappingReader.setProperty.

Name of the property to set

value:Object

Doc from org.codehaus.stax2.ri.dom.DOMWrappingReader.setProperty.

Value to set property to.

Returns:boolean

Doc from org.codehaus.stax2.ri.dom.DOMWrappingReader.setProperty.

True, if the specified property was succesfully set to specified value; false if its value was not changed

Annotations
@Override
throwStreamExceptionback to summary
protected void throwStreamException(String msg, Location loc) throws XMLStreamException

Implements abstract org.codehaus.stax2.ri.dom.DOMWrappingReader.throwStreamException.

Annotations
@Override