public void characters(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName && !inValue) { nameBuffer.append(pChars, pOffset, pLength); } else { super.characters(pChars, pOffset, pLength); } }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { if (inValueTag) { if (typeParser == null) { throw new SAXParseException("Invalid state: No type parser configured.", getDocumentLocator()); } else { typeParser.endElement(pURI, pLocalName, pQName); } } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName) { characters(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } }
public void startDocument() throws SAXException { super.startDocument(); level = 0; isSuccess = false; errorCode = 0; errorMessage = null; }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(list.toArray()); break; case 1: break; case 2: endValueTag(); break; default: super.endElement(pURI, pLocalName, pQName); } }
protected void endValueTag() throws SAXException { if (inValueTag) { if (typeParser == null) { addResult(text.toString()); text.setLength(0); } else { typeParser.endDocument(); try { addResult(typeParser.getResult()); } catch (XmlRpcException e) { throw new SAXException(e); } typeParser = null; } } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: if (!"".equals(pURI) || !ObjectArraySerializer.ARRAY_TAG.equals(pLocalName)) { throw new SAXParseException("Expected array element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 1: if (!"".equals(pURI) || !ObjectArraySerializer.DATA_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 2: if (!"".equals(pURI) || !TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } startValueTag(); break; default: super.startElement(pURI, pLocalName, pQName, pAttrs); break; } }
protected void addResult(Object pResult) throws SAXException { if (isSuccess) { super.setResult(pResult); } else { Map map = (Map) pResult;
public void startDocument() throws SAXException { super.startDocument(); level = 0; inMethodName = false; methodName = null; params = null; }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(list.toArray()); break; case 1: break; case 2: endValueTag(); break; default: super.endElement(pURI, pLocalName, pQName); } }
protected void endValueTag() throws SAXException { if (inValueTag) { if (typeParser == null) { addResult(text.toString()); text.setLength(0); } else { typeParser.endDocument(); try { addResult(typeParser.getResult()); } catch (XmlRpcException e) { throw new SAXException(e); } typeParser = null; } } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: if (!"".equals(pURI) || !ObjectArraySerializer.ARRAY_TAG.equals(pLocalName)) { throw new SAXParseException("Expected array element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 1: if (!"".equals(pURI) || !ObjectArraySerializer.DATA_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 2: if (!"".equals(pURI) || !TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } startValueTag(); break; default: super.startElement(pURI, pLocalName, pQName, pAttrs); break; } }
protected void addResult(Object pResult) throws SAXException { if (isSuccess) { super.setResult(pResult); } else { Map map = (Map) pResult;
public void startDocument() throws SAXException { super.startDocument(); level = 0; isSuccess = false; errorCode = 0; errorMessage = null; }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(list.toArray()); break; case 1: break; case 2: endValueTag(); break; default: super.endElement(pURI, pLocalName, pQName); } }
protected void endValueTag() throws SAXException { if (inValueTag) { if (typeParser == null) { addResult(text.toString()); text.setLength(0); } else { typeParser.endDocument(); try { addResult(typeParser.getResult()); } catch (XmlRpcException e) { throw new SAXException(e); } typeParser = null; } } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { switch (level++) { case 0: if (!"".equals(pURI) || !ObjectArraySerializer.ARRAY_TAG.equals(pLocalName)) { throw new SAXParseException("Expected array element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 1: if (!"".equals(pURI) || !ObjectArraySerializer.DATA_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } break; case 2: if (!"".equals(pURI) || !TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { throw new SAXParseException("Expected data element, got " + new QName(pURI, pLocalName), getDocumentLocator()); } startValueTag(); break; default: super.startElement(pURI, pLocalName, pQName, pAttrs); break; } }
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName && !inValue) { nameBuffer.append(pChars, pOffset, pLength); } else { super.characters(pChars, pOffset, pLength); } }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { if (inValueTag) { if (typeParser == null) { throw new SAXParseException("Invalid state: No type parser configured.", getDocumentLocator()); } else { typeParser.endElement(pURI, pLocalName, pQName); } } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName) { characters(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } }