com.ctc.wstx.evt
public class WstxEventReader extends Stax2EventReaderImpl
Stax2EventReaderImpl
.ERR_GETELEMTEXT_NON_TEXT_EVENT, ERR_GETELEMTEXT_NOT_START_ELEM, ERR_NEXTTAG_NON_WS_TEXT, ERR_NEXTTAG_WRONG_TYPE, mAllocator, mPrePeekEvent, mReader, mState, STATE_CONTENT, STATE_END_OF_INPUT, STATE_INITIAL
Constructor and Description |
---|
WstxEventReader(javax.xml.stream.util.XMLEventAllocator a,
XMLStreamReader2 r) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getErrorDesc(int errorType,
int currEvent)
Method called upon encountering a problem that should result
in an exception being thrown.
|
boolean |
isPropertySupported(java.lang.String name)
Method similar to
XMLInputFactory.isPropertySupported(java.lang.String) , used
to determine whether a property is supported by the Reader
instance. |
protected void |
reportProblem(java.lang.String msg,
javax.xml.stream.Location loc) |
boolean |
setProperty(java.lang.String name,
java.lang.Object value)
Method that can be used to set per-reader properties; a subset of
properties one can set via matching
XMLInputFactory2
instance. |
close, createNextEvent, createStartDocumentEvent, getElementText, getProperty, getStreamReader, hasNext, hasNextEvent, next, nextEvent, nextTag, peek, remove, reportProblem, throwUnchecked
public WstxEventReader(javax.xml.stream.util.XMLEventAllocator a, XMLStreamReader2 r)
protected java.lang.String getErrorDesc(int errorType, int currEvent)
Stax2EventReaderImpl
getErrorDesc
in class Stax2EventReaderImpl
errorType
- Type of the problem, one of ERR_
constantscurrEvent
- Type of the event that triggered the problem,
if any; -1 if not available.public boolean isPropertySupported(java.lang.String name)
XMLEventReader2
XMLInputFactory.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.isPropertySupported
in interface XMLEventReader2
isPropertySupported
in class Stax2EventReaderImpl
public boolean setProperty(java.lang.String name, java.lang.Object value)
XMLEventReader2
XMLInputFactory2
instance. Exactly which methods are mutable is implementation
specific.setProperty
in interface XMLEventReader2
setProperty
in class Stax2EventReaderImpl
name
- Name of the property to setvalue
- Value to set property to.protected void reportProblem(java.lang.String msg, javax.xml.stream.Location loc) throws javax.xml.stream.XMLStreamException
reportProblem
in class Stax2EventReaderImpl
javax.xml.stream.XMLStreamException