public void characters(char[] pChars, int pOffset, int pLength) throws SAXException { if (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.characters(pChars, pOffset, pLength); } } else { typeParser.characters(pChars, pOffset, pLength); } }
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } } else { typeParser.ignorableWhitespace(pChars, pOffset, pLength); } }
public void processingInstruction(String pTarget, String pData) throws SAXException { if (typeParser == null) { super.processingInstruction(pTarget, pData); } else { typeParser.processingInstruction(pTarget, pData); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (inValueTag) { if (typeParser == null) { typeParser = factory.getParser(cfg, context, pURI, pLocalName); if (typeParser == null) { if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI) && !cfg.isEnabledForExtensions()) { String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false."; throw new SAXParseException(msg, getDocumentLocator(), new XmlRpcExtensionException(msg)); } else { throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName), getDocumentLocator()); } } typeParser.setDocumentLocator(getDocumentLocator()); typeParser.startDocument(); if (text.length() > 0) { typeParser.characters(text.toString().toCharArray(), 0, text.length()); text.setLength(0); } } typeParser.startElement(pURI, pLocalName, pQName, pAttrs); } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
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 skippedEntity(String pEntity) throws SAXException { if (typeParser == null) { super.skippedEntity(pEntity); } else { typeParser.skippedEntity(pEntity); } }
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 startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (inValueTag) { if (typeParser == null) { typeParser = factory.getParser(cfg, context, pURI, pLocalName); if (typeParser == null) { if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI) && !cfg.isEnabledForExtensions()) { String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false."; throw new SAXParseException(msg, getDocumentLocator(), new XmlRpcExtensionException(msg)); } else { throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName), getDocumentLocator()); } } typeParser.setDocumentLocator(getDocumentLocator()); typeParser.startDocument(); if (text.length() > 0) { typeParser.characters(text.toString().toCharArray(), 0, text.length()); text.setLength(0); } } typeParser.startElement(pURI, pLocalName, pQName, pAttrs); } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
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 skippedEntity(String pEntity) throws SAXException { if (typeParser == null) { super.skippedEntity(pEntity); } else { typeParser.skippedEntity(pEntity); } }
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 startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (inValueTag) { if (typeParser == null) { typeParser = factory.getParser(cfg, context, pURI, pLocalName); if (typeParser == null) { if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI) && !cfg.isEnabledForExtensions()) { String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false."; throw new SAXParseException(msg, getDocumentLocator(), new XmlRpcExtensionException(msg)); } else { throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName), getDocumentLocator()); } } typeParser.setDocumentLocator(getDocumentLocator()); typeParser.startDocument(); if (text.length() > 0) { typeParser.characters(text.toString().toCharArray(), 0, text.length()); text.setLength(0); } } typeParser.startElement(pURI, pLocalName, pQName, pAttrs); } else { throw new SAXParseException("Invalid state: Not inside value tag.", getDocumentLocator()); } }
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 ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } } else { typeParser.ignorableWhitespace(pChars, pOffset, pLength); } }
public void skippedEntity(String pEntity) throws SAXException { if (typeParser == null) { super.skippedEntity(pEntity); } else { typeParser.skippedEntity(pEntity); } }
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException { if (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.characters(pChars, pOffset, pLength); } } else { typeParser.characters(pChars, pOffset, pLength); } }
public void processingInstruction(String pTarget, String pData) throws SAXException { if (typeParser == null) { super.processingInstruction(pTarget, pData); } else { typeParser.processingInstruction(pTarget, pData); } }
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 (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } } else { typeParser.ignorableWhitespace(pChars, pOffset, pLength); } }
public void characters(char[] pChars, int pOffset, int pLength) throws SAXException { if (typeParser == null) { if (inValueTag) { text.append(pChars, pOffset, pLength); } else { super.characters(pChars, pOffset, pLength); } } else { typeParser.characters(pChars, pOffset, pLength); } }