Class WstxEventReader

    • Method Detail

      • getErrorDesc

        protected String getErrorDesc​(int errorType,
                                      int currEvent)
        Description copied from class: Stax2EventReaderImpl
        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.
        Specified by:
        getErrorDesc in class Stax2EventReaderImpl
        Parameters:
        errorType - Type of the problem, one of ERR_ constants
        currEvent - Type of the event that triggered the problem, if any; -1 if not available.
      • setProperty

        public boolean setProperty​(String name,
                                   Object value)
        Description copied from interface: XMLEventReader2
        Method that can be used to set per-reader properties; a subset of properties one can set via matching XMLInputFactory2 instance. Exactly which methods are mutable is implementation specific.
        Specified by:
        setProperty in interface XMLEventReader2
        Specified by:
        setProperty in class Stax2EventReaderImpl
        Parameters:
        name - Name of the property to set
        value - Value to set property to.
        Returns:
        True, if the specified property was succesfully set to specified value; false if its value was not changed