Package com.ctc.wstx.dom
Class WstxDOMWrappingReader
- java.lang.Object
-
- org.codehaus.stax2.ri.dom.DOMWrappingReader
-
- com.ctc.wstx.dom.WstxDOMWrappingReader
-
- All Implemented Interfaces:
NamespaceContext,XMLStreamConstants,XMLStreamReader,AttributeInfo,DTDInfo,LocationInfo,TypedXMLStreamReader,Validatable,XMLStreamReader2
public class WstxDOMWrappingReader extends DOMWrappingReader
-
-
Field Summary
Fields Modifier and Type Field Description protected ReaderConfigmConfig-
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
-
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
-
Fields inherited from interface org.codehaus.stax2.XMLStreamReader2
FEATURE_DTD_OVERRIDE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWstxDOMWrappingReader(DOMSource src, ReaderConfig cfg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WstxDOMWrappingReadercreateFrom(DOMSource src, ReaderConfig cfg)ObjectgetProperty(String name)booleanisPropertySupported(String name)Method similar toXMLInputFactory.isPropertySupported(java.lang.String), used to determine whether a property is supported by the Reader instance.booleansetProperty(String name, Object value)Method that can be used to set per-reader properties; a subset of properties one can set via matchingXMLInputFactory2instance.protected voidthrowStreamException(String msg, 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
-
mConfig
protected final ReaderConfig mConfig
-
-
Constructor Detail
-
WstxDOMWrappingReader
protected WstxDOMWrappingReader(DOMSource src, ReaderConfig cfg) throws XMLStreamException
- Throws:
XMLStreamException
-
-
Method Detail
-
createFrom
public static WstxDOMWrappingReader createFrom(DOMSource src, ReaderConfig cfg) throws XMLStreamException
- Throws:
XMLStreamException
-
isPropertySupported
public boolean isPropertySupported(String name)
Description copied from interface:XMLStreamReader2Method similar toXMLInputFactory.isPropertySupported(java.lang.String), 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.- Specified by:
isPropertySupportedin interfaceXMLStreamReader2- Specified by:
isPropertySupportedin classDOMWrappingReader
-
getProperty
public Object getProperty(String name)
- Specified by:
getPropertyin interfaceXMLStreamReader- Specified by:
getPropertyin classDOMWrappingReader
-
setProperty
public boolean setProperty(String name, Object value)
Description copied from interface:XMLStreamReader2Method that can be used to set per-reader properties; a subset of properties one can set via matchingXMLInputFactory2instance. Exactly which methods are mutable is implementation specific.- Specified by:
setPropertyin interfaceXMLStreamReader2- Specified by:
setPropertyin classDOMWrappingReader- Parameters:
name- Name of the property to setvalue- Value to set property to.- Returns:
- True, if the specified property was succesfully set to specified value; false if its value was not changed
-
throwStreamException
protected void throwStreamException(String msg, Location loc) throws XMLStreamException
- Specified by:
throwStreamExceptionin classDOMWrappingReader- Throws:
XMLStreamException
-
-