/** * Method called by the stream reader to decode space-separated tokens * that are part of the current text event, using given decoder. * * @param reset If true, need to tell text buffer to reset its decoding * state; if false, shouldn't */ public final int decodeElements(TypedArrayDecoder tad, boolean reset) throws XMLStreamException { if (_tokenIncomplete) { finishToken(); } try { return _textBuilder.decodeElements(tad, reset); } catch (TypedXMLStreamException tex) { // Need to add location? Location loc = getCurrentLocation(); String lexical = tex.getLexical(); IllegalArgumentException iae = (IllegalArgumentException)tex.getCause(); throw new TypedXMLStreamException(lexical, tex.getMessage(), loc, iae); } }
/** * Method called by the stream reader to decode space-separated tokens * that are part of the current text event, using given decoder. * * @param reset If true, need to tell text buffer to reset its decoding * state; if false, shouldn't */ public final int decodeElements(TypedArrayDecoder tad, boolean reset) throws XMLStreamException { if (_tokenIncomplete) { finishToken(); } try { return _textBuilder.decodeElements(tad, reset); } catch (TypedXMLStreamException tex) { // Need to add location? Location loc = getCurrentLocation(); String lexical = tex.getLexical(); IllegalArgumentException iae = (IllegalArgumentException)tex.getCause(); throw new TypedXMLStreamException(lexical, tex.getMessage(), loc, iae); } }