Refine search
if (tad.decodeValue(buf, start, tokenEnd)) { if (!checkExpand(tad)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);
/** * Method called to wrap or convert given conversion-fail exception * into a full {@link TypedXMLStreamException}, * * @param iae Problem as reported by converter * @param lexicalValue Lexical value (element content, attribute value) * that could not be converted succesfully. */ protected TypedXMLStreamException _constructTypeException(IllegalArgumentException iae, String lexicalValue) { return new TypedXMLStreamException(lexicalValue, iae.getMessage(), getStartLocation(), 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); } }
protected TypedXMLStreamException _constructTypeException(String msg, String lexicalValue) { return new TypedXMLStreamException(lexicalValue, msg, getStartLocation()); }
/** * 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); } }
if (tad.decodeValue(buf, start, tokenEnd)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae); } finally { mInputStart = ptr;
public final byte[] decodeBinary(int index, Base64Variant v, CharArrayBase64Decoder dec, InputProblemReporter rep) throws XMLStreamException { if (index < 0 || index >= mAttrCount) { throwIndex(index); } /* No point in trying to use String representation, even if one * available, faster to process from char[] */ Attribute attr = mAttributes[index]; char[] cbuf = mValueBuilder.getCharBuffer(); int start = attr.mValueStartOffset; int end = getValueStartOffset(index+1); int len = end-start; dec.init(v, true, cbuf, start, len, null); try { return dec.decodeCompletely(); } catch (IllegalArgumentException iae) { // Need to convert to a checked stream exception String lexical = new String(cbuf, start, len); throw new TypedXMLStreamException(lexical, iae.getMessage(), rep.getLocation(), iae); } }
if (tad.decodeValue(buf, start, tokenEnd)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), iae);
protected TypedXMLStreamException _constructTypeException(String msg, String lexicalValue) { Location loc = getStartLocation(); if (loc == null) { return new TypedXMLStreamException(lexicalValue, msg); } return new TypedXMLStreamException(lexicalValue, msg, loc); } }
if (tad.decodeValue(buf, start, tokenEnd)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), iae);
protected TypedXMLStreamException _constructTypeException(String msg, String lexicalValue) { Location loc = getStartLocation(); if (loc == null) { return new TypedXMLStreamException(lexicalValue, msg); } return new TypedXMLStreamException(lexicalValue, msg, loc); }
if (tad.decodeValue(lexical)) { if (!checkExpand(tad)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);
/** * Method called to wrap or convert given conversion-fail exception * into a full {@link TypedXMLStreamException}. * * @param iae Problem as reported by converter * @param lexicalValue Lexical value (element content, attribute value) * that could not be converted succesfully. */ private TypedXMLStreamException _constructTypeException(IllegalArgumentException iae, String lexicalValue) { return new TypedXMLStreamException(lexicalValue, iae.getMessage(), getStartLocation(), iae); }
if (tad.decodeValue(lexical)) { if (!checkExpand(tad)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);
/** * Method called to wrap or convert given conversion-fail exception * into a full {@link TypedXMLStreamException}, * * @param iae Problem as reported by converter * @param lexicalValue Lexical value (element content, attribute value) * that could not be converted succesfully. */ protected TypedXMLStreamException _constructTypeException(IllegalArgumentException iae, String lexicalValue) { return new TypedXMLStreamException(lexicalValue, iae.getMessage(), getStartLocation(), iae); } }
if (tad.decodeValue(buf, start, tokenEnd)) { if (!checkExpand(tad)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);
/** * Method called to wrap or convert given conversion-fail exception * into a full {@link TypedXMLStreamException}, * * @param iae Problem as reported by converter * @param lexicalValue Lexical value (element content, attribute value) * that could not be converted succesfully. */ protected TypedXMLStreamException _constructTypeException(IllegalArgumentException iae, String lexicalValue) { String msg = iae.getMessage(); if (msg == null) { msg = ""; } Location loc = getStartLocation(); if (loc == null) { return new TypedXMLStreamException(lexicalValue, msg, iae); } return new TypedXMLStreamException(lexicalValue, msg, loc, iae); }
if (tad.decodeValue(buf, start, tokenEnd)) { if (!checkExpand(tad)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);
private TypedXMLStreamException _constructTypeException(String msg, String lexicalValue) { return new TypedXMLStreamException(lexicalValue, msg, getStartLocation()); }
if (dec.decodeValue(buf, start, tokenEnd)) { if (!checkExpand(dec)) { break; throw new TypedXMLStreamException(lexical, iae.getMessage(), loc, iae);