protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }
return new DoubleParser(); } else if (DateSerializer.DATE_TAG.equals(pLocalName)) { return new DateParser(new XmlRpcDateTimeDateFormat(){ private static final long serialVersionUID = 7585237706442299067L; protected TimeZone getTimeZone() {
return new DoubleParser(); } else if (DateSerializer.DATE_TAG.equals(pLocalName)) { return new DateParser(new XmlRpcDateTimeDateFormat(){ private static final long serialVersionUID = 7585237706442299067L; protected TimeZone getTimeZone() {
protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }
return new DoubleParser(); } else if (DateSerializer.DATE_TAG.equals(pLocalName)) { return new DateParser(new XmlRpcDateTimeDateFormat(){ private static final long serialVersionUID = 7585237706442299067L; protected TimeZone getTimeZone() {
protected void setResult(String pResult) throws SAXException { final String s = pResult.trim(); if (s.length() == 0) { return; } try { super.setResult(f.parseObject(s)); } catch (ParseException e) { final String msg; int offset = e.getErrorOffset(); if (e.getErrorOffset() == -1) { msg = "Failed to parse date value: " + pResult; } else { msg = "Failed to parse date value " + pResult + " at position " + offset; } throw new SAXParseException(msg, getDocumentLocator(), e); } } }