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

public final Class EventReaderImpl

extends Stax2EventReaderImpl
Class Inheritance
Imports
javax.xml.stream.*, javax.xml.stream.util.XMLEventAllocator, org.codehaus.stax2.XMLStreamReader2, org.codehaus.stax2.ri.Stax2EventReaderImpl, com.fasterxml.aalto.impl.StreamExceptionBase

Simple implementation based on Stax2 reference implementation base.

Field Summary

Inherited from org.codehaus.stax2.ri.Stax2EventReaderImpl:
ERR_GETELEMTEXT_NON_TEXT_EVENTERR_GETELEMTEXT_NOT_START_ELEMERR_NEXTTAG_NON_WS_TEXTERR_NEXTTAG_WRONG_TYPEmAllocatormPeekedEventmPrePeekEventmReadermStateSTATE_CONTENTSTATE_END_OF_INPUTSTATE_INITIAL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
getErrorDesc(int
Type of the problem, one of ERR_ constants
errorType
,
int
Type of the event that triggered the problem, if any; -1 if not available.
currEvent
)

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.getErrorDesc.

Method called upon encountering a problem that should result in an exception being thrown.
public boolean
isPropertySupported(String name)

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.isPropertySupported.

Implements org.codehaus.stax2.XMLEventReader2.isPropertySupported.

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

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.setProperty.

Implements org.codehaus.stax2.XMLEventReader2.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.
Inherited from org.codehaus.stax2.ri.Stax2EventReaderImpl:
_checkUnwrapclosecreateNextEventcreateStartDocumentEventfindErrorDescgetElementTextgetPropertygetStreamReaderhasNexthasNextEventnextnextEventnextTagpeekremovereportProblemthrowEndOfInputthrowUncheckedupdateStateEndDocument

Constructor Detail

EventReaderImplback to summary
public EventReaderImpl(XMLEventAllocator a, XMLStreamReader2 r)

Method Detail

getErrorDescback to summary
protected String getErrorDesc(int errorType, int currEvent)

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.getErrorDesc.

Doc from org.codehaus.stax2.ri.Stax2EventReaderImpl.getErrorDesc.

Method called upon encountering a problem that should result in an exception being thrown. If non-null String is returned. that will be used as the message of exception thrown; if null, a standard message will be used instead.

Parameters
errorType:int

Type of the problem, one of ERR_ constants

currEvent:int

Type of the event that triggered the problem, if any; -1 if not available.

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

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.isPropertySupported.

Implements org.codehaus.stax2.XMLEventReader2.isPropertySupported.

Doc from org.codehaus.stax2.XMLEventReader2.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
reportProblemback to summary
protected void reportProblem(String msg, Location loc) throws XMLStreamException

Overrides org.codehaus.stax2.ri.Stax2EventReaderImpl.reportProblem.

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

Implements abstract org.codehaus.stax2.ri.Stax2EventReaderImpl.setProperty.

Implements org.codehaus.stax2.XMLEventReader2.setProperty.

Doc from org.codehaus.stax2.XMLEventReader2.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

Name of the property to set

value:Object

Value to set property to.

Returns:boolean

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

Annotations
@Override