bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
|---|---|---|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException if (out == null) throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) nt = Node.CDATA_SECTION_NODE; } switch (nt) case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) String nsuri = node.getNodeValue(); if (isDefined(nsuri)) break; } String name = node.getLocalName(); if (name == null) name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) int len = attrs.getLength(); for (int i = 0; i < len; i++) Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) // NOOP } else serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) out.write(SLASH); out.write(KET); } else out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) if ("UTF-16".equalsIgnoreCase(encoding)) out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) version = (String) node.getUserData("version"); } if (version == null) version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) html = ctx; break; } } if (html == null) html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) String name = ctx.getLocalName(); if (name == null) name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) head = ctx; break; } } } if (head == null) head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) c1 = ctx; break; } } if (c1 != null) html.insertBefore(head, c1); } else html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) String name = ctx.getLocalName(); if (name == null) name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) meta = ctx; metaContent = content; break; } } } } if (meta == null) meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) head.appendChild(meta); } else head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) out.write(encodeText(eol)); } break; } if (defined) undefine(uri); } }
| 14,785
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); define(nsuri, name); else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP else { serialize(attr, out, false); convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); if (version == null) { version = "1.0"; out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); out.write(0x3f); out.write(KET); out.write(encodeText(eol)); // TODO warn if not outputting the declaration would be a // problem else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; if (html == null) { html = doc.createElement("html"); node.appendChild(html); Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); if ("head".equalsIgnoreCase(name)) { head = ctx; break; if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; if (c1 != null) { html.insertBefore(head, c1); else { html.appendChild(head); Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); else if ("content".equalsIgnoreCase(attrName)) { content = attr; if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); else { head.insertBefore(meta, first); Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); metaContent.setNodeValue(contentType); // phew children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); break; if (defined) { undefine(uri); }
| 14,786
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
htmlEncoded = true; } } htmlEncoded = true; } } privatehtmlEncoded = true; } } voidhtmlEncoded = true; } } doSerialize(finalhtmlEncoded = true; } } NodehtmlEncoded = true; } } node,htmlEncoded = true; } } finalhtmlEncoded = true; } } OutputStreamhtmlEncoded = true; } } out,htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } booleanhtmlEncoded = true; } } convertToCdata)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } throwshtmlEncoded = true; } } IOExceptionhtmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (outhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } throwhtmlEncoded = true; } } newhtmlEncoded = true; } } NullPointerException("nohtmlEncoded = true; } } outputhtmlEncoded = true; } } stream");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } value,htmlEncoded = true; } } prefix;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } children;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } urihtmlEncoded = true; } } =htmlEncoded = true; } } node.getNamespaceURI();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } booleanhtmlEncoded = true; } } definedhtmlEncoded = true; } } =htmlEncoded = true; } } false;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } shorthtmlEncoded = true; } } nthtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeType();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (convertToCdatahtmlEncoded = true; } } &&htmlEncoded = true; } } nthtmlEncoded = true; } } ==htmlEncoded = true; } } Node.TEXT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } nthtmlEncoded = true; } } =htmlEncoded = true; } } Node.CDATA_SECTION_NODE;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } switchhtmlEncoded = true; } } (nt)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.ATTRIBUTE_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } prefixhtmlEncoded = true; } } =htmlEncoded = true; } } node.getPrefix();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri)htmlEncoded = true; } } ||htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)htmlEncoded = true; } } ||htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } (prefixhtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } prefix.startsWith("xmlns:")))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } nsurihtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeValue();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (isDefined(nsuri))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } node.getLocalName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (namehtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } define(nsuri,htmlEncoded = true; } } name);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } ifhtmlEncoded = true; } } (urihtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } !isDefined(uri))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } prefixhtmlEncoded = true; } } =htmlEncoded = true; } } define(uri,htmlEncoded = true; } } prefix);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } nsnamehtmlEncoded = true; } } =htmlEncoded = true; } } (prefixhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } ?htmlEncoded = true; } } "xmlns"htmlEncoded = true; } } :htmlEncoded = true; } } "xmlns:"htmlEncoded = true; } } +htmlEncoded = true; } } prefix;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(SPACE);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(nsname));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(EQ);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } nsvaluehtmlEncoded = true; } } =htmlEncoded = true; } } "'"htmlEncoded = true; } } +htmlEncoded = true; } } encode(uri,htmlEncoded = true; } } true,htmlEncoded = true; } } true)htmlEncoded = true; } } +htmlEncoded = true; } } "'";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(nsvalue.getBytes(encoding));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } definedhtmlEncoded = true; } } =htmlEncoded = true; } } true;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(SPACE);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } a_nodeNamehtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(a_nodeName));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } a_nodeValuehtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeValue();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (modehtmlEncoded = true; } } ==htmlEncoded = true; } } Stylesheet.OUTPUT_HTMLhtmlEncoded = true; } } &&htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } a_nodeName.equals(a_nodeValue)htmlEncoded = true; } } &&htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } isHTMLBoolean((Attr)htmlEncoded = true; } } node,htmlEncoded = true; } } a_nodeName))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(EQ);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } "'"htmlEncoded = true; } } +htmlEncoded = true; } } encode(a_nodeValue,htmlEncoded = true; } } true,htmlEncoded = true; } } true)htmlEncoded = true; } } +htmlEncoded = true; } } "'";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.ELEMENT_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(BRA);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (urihtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } !isDefined(uri))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } prefixhtmlEncoded = true; } } =htmlEncoded = true; } } define(uri,htmlEncoded = true; } } node.getPrefix());htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } nsnamehtmlEncoded = true; } } =htmlEncoded = true; } } (prefixhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } ?htmlEncoded = true; } } "xmlns"htmlEncoded = true; } } :htmlEncoded = true; } } "xmlns:"htmlEncoded = true; } } +htmlEncoded = true; } } prefix;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(SPACE);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(nsname));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(EQ);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } nsvaluehtmlEncoded = true; } } =htmlEncoded = true; } } "'"htmlEncoded = true; } } +htmlEncoded = true; } } encode(uri,htmlEncoded = true; } } true,htmlEncoded = true; } } true)htmlEncoded = true; } } +htmlEncoded = true; } } "'";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(nsvalue));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } definedhtmlEncoded = true; } } =htmlEncoded = true; } } true;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NamedNodeMaphtmlEncoded = true; } } attrshtmlEncoded = true; } } =htmlEncoded = true; } } node.getAttributes();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (attrshtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } inthtmlEncoded = true; } } lenhtmlEncoded = true; } } =htmlEncoded = true; } } attrs.getLength();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (inthtmlEncoded = true; } } ihtmlEncoded = true; } } =htmlEncoded = true; } } 0;htmlEncoded = true; } } ihtmlEncoded = true; } } <htmlEncoded = true; } } len;htmlEncoded = true; } } i++)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } AttrhtmlEncoded = true; } } attrhtmlEncoded = true; } } =htmlEncoded = true; } } (Attr)htmlEncoded = true; } } attrs.item(i);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (discardDefaultContenthtmlEncoded = true; } } &&htmlEncoded = true; } } !attr.getSpecified())htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } NOOPhtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } serialize(attr,htmlEncoded = true; } } out,htmlEncoded = true; } } false);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } convertToCdatahtmlEncoded = true; } } =htmlEncoded = true; } } cdataSectionElements.contains(value);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } childrenhtmlEncoded = true; } } =htmlEncoded = true; } } node.getFirstChild();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (childrenhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(SLASH);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(KET);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(KET);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } serialize(children,htmlEncoded = true; } } out,htmlEncoded = true; } } convertToCdata);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(BRA);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(SLASH);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(KET);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.TEXT_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } node.getNodeValue();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (!"yes".equals(node.getUserData("disable-output-escaping")))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } encode(value,htmlEncoded = true; } } false,htmlEncoded = true; } } false);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.CDATA_SECTION_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } "<![CDATA["htmlEncoded = true; } } +htmlEncoded = true; } } node.getNodeValue()htmlEncoded = true; } } +htmlEncoded = true; } } "]]>";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.COMMENT_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } "<!--"htmlEncoded = true; } } +htmlEncoded = true; } } node.getNodeValue()htmlEncoded = true; } } +htmlEncoded = true; } } "-->";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } cphtmlEncoded = true; } } =htmlEncoded = true; } } node.getParentNode();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (cphtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } cp.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.DOCUMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(eol));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.DOCUMENT_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.DOCUMENT_FRAGMENT_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (modehtmlEncoded = true; } } ==htmlEncoded = true; } } Stylesheet.OUTPUT_XML)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ("UTF-16".equalsIgnoreCase(encoding))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(0xfe);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(0xff);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (!"yes".equals(node.getUserData("omit-xml-declaration"))htmlEncoded = true; } } &&htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } xmlDeclaration)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } DocumenthtmlEncoded = true; } } dochtmlEncoded = true; } } =htmlEncoded = true; } } (nodehtmlEncoded = true; } } instanceofhtmlEncoded = true; } } Document)htmlEncoded = true; } } ?htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } (Document)htmlEncoded = true; } } nodehtmlEncoded = true; } } :htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } versionhtmlEncoded = true; } } =htmlEncoded = true; } } (dochtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } ?htmlEncoded = true; } } doc.getXmlVersion()htmlEncoded = true; } } :htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (versionhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } versionhtmlEncoded = true; } } =htmlEncoded = true; } } (String)htmlEncoded = true; } } node.getUserData("version");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (versionhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } versionhtmlEncoded = true; } } =htmlEncoded = true; } } "1.0";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(BRA);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(0x3f);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write("xmlhtmlEncoded = true; } } version='".getBytes("US-ASCII"));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(version.getBytes("US-ASCII"));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (!("UTF-8".equalsIgnoreCase(encoding)))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write("htmlEncoded = true; } } encoding='".getBytes("US-ASCII"));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encoding.getBytes("US-ASCII"));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ((dochtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } doc.getXmlStandalone())htmlEncoded = true; } } ||htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } "yes".equals(node.getUserData("standalone")))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write("htmlEncoded = true; } } standalone='yes'".getBytes("US-ASCII"));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(0x3f);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(KET);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(eol));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } TODOhtmlEncoded = true; } } warnhtmlEncoded = true; } } ifhtmlEncoded = true; } } nothtmlEncoded = true; } } outputtinghtmlEncoded = true; } } thehtmlEncoded = true; } } declarationhtmlEncoded = true; } } wouldhtmlEncoded = true; } } behtmlEncoded = true; } } ahtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } problemhtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } ifhtmlEncoded = true; } } (modehtmlEncoded = true; } } ==htmlEncoded = true; } } Stylesheet.OUTPUT_HTML)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } EnsurehtmlEncoded = true; } } thathtmlEncoded = true; } } encodinghtmlEncoded = true; } } ishtmlEncoded = true; } } accessiblehtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } mediaTypehtmlEncoded = true; } } =htmlEncoded = true; } } (String)htmlEncoded = true; } } node.getUserData("media-type");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (mediaTypehtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } mediaTypehtmlEncoded = true; } } =htmlEncoded = true; } } "text/html";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } contentTypehtmlEncoded = true; } } =htmlEncoded = true; } } mediaTypehtmlEncoded = true; } } +htmlEncoded = true; } } ";htmlEncoded = true; } } charset="htmlEncoded = true; } } +htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ((encoding.indexOf('htmlEncoded = true; } } ')htmlEncoded = true; } } !=htmlEncoded = true; } } -1)htmlEncoded = true; } } ?htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } "\""htmlEncoded = true; } } +htmlEncoded = true; } } encodinghtmlEncoded = true; } } +htmlEncoded = true; } } "\""htmlEncoded = true; } } :htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } encoding);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } DocumenthtmlEncoded = true; } } dochtmlEncoded = true; } } =htmlEncoded = true; } } (nodehtmlEncoded = true; } } instanceofhtmlEncoded = true; } } Document)htmlEncoded = true; } } ?htmlEncoded = true; } } (Document)htmlEncoded = true; } } nodehtmlEncoded = true; } } :htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } node.getOwnerDocument();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } htmlhtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (NodehtmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } node.getFirstChild();htmlEncoded = true; } } ctxhtmlEncoded = true; } } !=htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNextSibling())htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (ctx.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.ELEMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlhtmlEncoded = true; } } =htmlEncoded = true; } } ctx;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (htmlhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlhtmlEncoded = true; } } =htmlEncoded = true; } } doc.createElement("html");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } node.appendChild(html);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } headhtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (NodehtmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } html.getFirstChild();htmlEncoded = true; } } ctxhtmlEncoded = true; } } !=htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNextSibling())htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (ctx.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.ELEMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getLocalName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (namehtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ("head".equalsIgnoreCase(name))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } headhtmlEncoded = true; } } =htmlEncoded = true; } } ctx;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (headhtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } headhtmlEncoded = true; } } =htmlEncoded = true; } } doc.createElement("head");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } c1htmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (NodehtmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } html.getFirstChild();htmlEncoded = true; } } ctxhtmlEncoded = true; } } !=htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNextSibling())htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (ctx.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.ELEMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } c1htmlEncoded = true; } } =htmlEncoded = true; } } ctx;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (c1htmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } html.insertBefore(head,htmlEncoded = true; } } c1);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } html.appendChild(head);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } metahtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } metaContenthtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (NodehtmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } head.getFirstChild();htmlEncoded = true; } } ctxhtmlEncoded = true; } } !=htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ctxhtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNextSibling())htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (ctx.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.ELEMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getLocalName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (namehtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } namehtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ("meta".equalsIgnoreCase(name))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NamedNodeMaphtmlEncoded = true; } } metaAttrshtmlEncoded = true; } } =htmlEncoded = true; } } ctx.getAttributes();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } inthtmlEncoded = true; } } lenhtmlEncoded = true; } } =htmlEncoded = true; } } metaAttrs.getLength();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } httpEquivhtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } contenthtmlEncoded = true; } } =htmlEncoded = true; } } null;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } forhtmlEncoded = true; } } (inthtmlEncoded = true; } } ihtmlEncoded = true; } } =htmlEncoded = true; } } 0;htmlEncoded = true; } } ihtmlEncoded = true; } } <htmlEncoded = true; } } len;htmlEncoded = true; } } i++)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } attrhtmlEncoded = true; } } =htmlEncoded = true; } } metaAttrs.item(i);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } attrNamehtmlEncoded = true; } } =htmlEncoded = true; } } attr.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ("http-equiv".equalsIgnoreCase(attrName))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } httpEquivhtmlEncoded = true; } } =htmlEncoded = true; } } attr.getNodeValue();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } ifhtmlEncoded = true; } } ("content".equalsIgnoreCase(attrName))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } contenthtmlEncoded = true; } } =htmlEncoded = true; } } attr;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } ("Content-Type".equalsIgnoreCase(httpEquiv))htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metahtmlEncoded = true; } } =htmlEncoded = true; } } ctx;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metaContenthtmlEncoded = true; } } =htmlEncoded = true; } } content;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (metahtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metahtmlEncoded = true; } } =htmlEncoded = true; } } doc.createElement("meta");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } InserthtmlEncoded = true; } } firsthtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } firsthtmlEncoded = true; } } =htmlEncoded = true; } } head.getFirstChild();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (firsthtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } head.appendChild(meta);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } elsehtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } head.insertBefore(meta,htmlEncoded = true; } } first);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } metaHttpEquivhtmlEncoded = true; } } =htmlEncoded = true; } } doc.createAttribute("http-equiv");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } meta.getAttributes().setNamedItem(metaHttpEquiv);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metaHttpEquiv.setNodeValue("Content-Type");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (metaContenthtmlEncoded = true; } } ==htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metaContenthtmlEncoded = true; } } =htmlEncoded = true; } } doc.createAttribute("content");htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } meta.getAttributes().setNamedItem(metaContent);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } metaContent.setNodeValue(contentType);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } //htmlEncoded = true; } } phewhtmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } childrenhtmlEncoded = true; } } =htmlEncoded = true; } } node.getFirstChild();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (childrenhtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } serialize(children,htmlEncoded = true; } } out,htmlEncoded = true; } } convertToCdata);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.DOCUMENT_TYPE_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } DocumentTypehtmlEncoded = true; } } doctypehtmlEncoded = true; } } =htmlEncoded = true; } } (DocumentType)htmlEncoded = true; } } node;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(BRA);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(BANG); out.write(encodeText("DOCTYPEhtmlEncoded = true; } } "));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } doctype.getNodeName();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } publicIdhtmlEncoded = true; } } =htmlEncoded = true; } } doctype.getPublicId();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (publicIdhtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText("htmlEncoded = true; } } PUBLIChtmlEncoded = true; } } "));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(publicId));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } systemIdhtmlEncoded = true; } } =htmlEncoded = true; } } doctype.getSystemId();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (systemIdhtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText("htmlEncoded = true; } } SYSTEMhtmlEncoded = true; } } "));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(systemId));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(APOS);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } StringhtmlEncoded = true; } } internalSubsethtmlEncoded = true; } } =htmlEncoded = true; } } doctype.getInternalSubset();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (internalSubsethtmlEncoded = true; } } !=htmlEncoded = true; } } null)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(internalSubset));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(KET);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(eol.getBytes(encoding));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.ENTITY_REFERENCE_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } "&"htmlEncoded = true; } } +htmlEncoded = true; } } node.getNodeValue()htmlEncoded = true; } } +htmlEncoded = true; } } ";";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } casehtmlEncoded = true; } } Node.PROCESSING_INSTRUCTION_NODE:htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } valuehtmlEncoded = true; } } =htmlEncoded = true; } } "<?"htmlEncoded = true; } } +htmlEncoded = true; } } node.getNodeName()htmlEncoded = true; } } +htmlEncoded = true; } } "htmlEncoded = true; } } "htmlEncoded = true; } } +htmlEncoded = true; } } node.getNodeValue()htmlEncoded = true; } } +htmlEncoded = true; } } "?>";htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(value));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } NodehtmlEncoded = true; } } pphtmlEncoded = true; } } =htmlEncoded = true; } } node.getParentNode();htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (pphtmlEncoded = true; } } !=htmlEncoded = true; } } nullhtmlEncoded = true; } } &&htmlEncoded = true; } } pp.getNodeType()htmlEncoded = true; } } ==htmlEncoded = true; } } Node.DOCUMENT_NODE)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } out.write(encodeText(eol));htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } break;htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } ifhtmlEncoded = true; } } (defined)htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } {htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } undefine(uri);htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } htmlEncoded = true; } } }htmlEncoded = true; } } htmlEncoded = true; } } }
| 14,787
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException if (out == null) throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) nt = Node.CDATA_SECTION_NODE; } switch (nt) case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) String nsuri = node.getNodeValue(); if (isDefined(nsuri)) break; } String name = node.getLocalName(); if (name == null) name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) int len = attrs.getLength(); for (int i = 0; i < len; i++) Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) // NOOP } else serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) out.write(SLASH); out.write(KET); } else out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) if ("UTF-16".equalsIgnoreCase(encoding)) out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) version = (String) node.getUserData("version"); } if (version == null) version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) html = ctx; break; } } if (html == null) html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) String name = ctx.getLocalName(); if (name == null) name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) head = ctx; break; } } } if (head == null) head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) c1 = ctx; break; } } if (c1 != null) html.insertBefore(head, c1); } else html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) if (ctx.getNodeType() == Node.ELEMENT_NODE) String name = ctx.getLocalName(); if (name == null) name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) meta = ctx; metaContent = content; break; } } } } if (meta == null) meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) head.appendChild(meta); } else head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) out.write(encodeText(eol)); } break; } if (defined) undefine(uri); } }
| 14,788
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); define(nsuri, name); else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP else { serialize(attr, out, false); convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); if (version == null) { version = "1.0"; out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); out.write(0x3f); out.write(KET); out.write(encodeText(eol)); // TODO warn if not outputting the declaration would be a // problem else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; if (html == null) { html = doc.createElement("html"); node.appendChild(html); Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); if ("head".equalsIgnoreCase(name)) { head = ctx; break; if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; if (c1 != null) { html.insertBefore(head, c1); else { html.appendChild(head); Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); else if ("content".equalsIgnoreCase(attrName)) { content = attr; if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); else { head.insertBefore(meta, first); Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); metaContent.setNodeValue(contentType); // phew children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); break; if (defined) { undefine(uri); }
| 14,789
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
|
private void doSerialize(final Node node, final OutputStream out, boolean convertToCdata) throws IOException { if (out == null) { throw new NullPointerException("no output stream"); } String value, prefix; Node children; String uri = node.getNamespaceURI(); boolean defined = false; short nt = node.getNodeType(); if (convertToCdata && nt == Node.TEXT_NODE) { nt = Node.CDATA_SECTION_NODE; } switch (nt) { case Node.ATTRIBUTE_NODE: prefix = node.getPrefix(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(prefix) || (prefix != null && prefix.startsWith("xmlns:"))) { String nsuri = node.getNodeValue(); if (isDefined(nsuri)) { break; } String name = node.getLocalName(); if (name == null) { name = node.getNodeName(); } define(nsuri, name); } else if (uri != null && !isDefined(uri)) { prefix = define(uri, prefix); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(nsvalue.getBytes(encoding)); defined = true; } out.write(SPACE); String a_nodeName = node.getNodeName(); out.write(encodeText(a_nodeName)); String a_nodeValue = node.getNodeValue(); if (mode == Stylesheet.OUTPUT_HTML && a_nodeName.equals(a_nodeValue) && isHTMLBoolean((Attr) node, a_nodeName)) { break; } out.write(EQ); value = "'" + encode(a_nodeValue, true, true) + "'"; out.write(encodeText(value)); break; case Node.ELEMENT_NODE: value = node.getNodeName(); out.write(BRA); out.write(encodeText(value)); if (uri != null && !isDefined(uri)) { prefix = define(uri, node.getPrefix()); String nsname = (prefix == null) ? "xmlns" : "xmlns:" + prefix; out.write(SPACE); out.write(encodeText(nsname)); out.write(EQ); String nsvalue = "'" + encode(uri, true, true) + "'"; out.write(encodeText(nsvalue)); defined = true; } NamedNodeMap attrs = node.getAttributes(); if (attrs != null) { int len = attrs.getLength(); for (int i = 0; i < len; i++) { Attr attr = (Attr) attrs.item(i); if (discardDefaultContent && !attr.getSpecified()) { // NOOP } else { serialize(attr, out, false); } } } convertToCdata = cdataSectionElements.contains(value); children = node.getFirstChild(); if (children == null) { out.write(SLASH); out.write(KET); } else { out.write(KET); serialize(children, out, convertToCdata); out.write(BRA); out.write(SLASH); out.write(encodeText(value)); out.write(KET); } break; case Node.TEXT_NODE: value = node.getNodeValue(); if (!"yes".equals(node.getUserData("disable-output-escaping"))) { value = encode(value, false, false); } out.write(encodeText(value)); break; case Node.CDATA_SECTION_NODE: value = "<![CDATA[" + node.getNodeValue() + "]]>"; out.write(encodeText(value)); break; case Node.COMMENT_NODE: value = "<!--" + node.getNodeValue() + "-->"; out.write(encodeText(value)); Node cp = node.getParentNode(); if (cp != null && cp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; case Node.DOCUMENT_NODE: case Node.DOCUMENT_FRAGMENT_NODE: if (mode == Stylesheet.OUTPUT_XML) { if ("UTF-16".equalsIgnoreCase(encoding)) { out.write(0xfe); out.write(0xff); } if (!"yes".equals(node.getUserData("omit-xml-declaration")) && xmlDeclaration) { Document doc = (node instanceof Document) ? (Document) node : null; String version = (doc != null) ? doc.getXmlVersion() : null; if (version == null) { version = (String) node.getUserData("version"); } if (version == null) { version = "1.0"; } out.write(BRA); out.write(0x3f); out.write("xml version='".getBytes("US-ASCII")); out.write(version.getBytes("US-ASCII")); out.write(APOS); if (!("UTF-8".equalsIgnoreCase(encoding))) { out.write(" encoding='".getBytes("US-ASCII")); out.write(encoding.getBytes("US-ASCII")); out.write(APOS); } if ((doc != null && doc.getXmlStandalone()) || "yes".equals(node.getUserData("standalone"))) { out.write(" standalone='yes'".getBytes("US-ASCII")); } out.write(0x3f); out.write(KET); out.write(encodeText(eol)); } // TODO warn if not outputting the declaration would be a // problem } else if (mode == Stylesheet.OUTPUT_HTML) { // Ensure that encoding is accessible String mediaType = (String) node.getUserData("media-type"); if (mediaType == null) { mediaType = "text/html"; } String contentType = mediaType + "; charset=" + ((encoding.indexOf(' ') != -1) ? "\"" + encoding + "\"" : encoding); Document doc = (node instanceof Document) ? (Document) node : node.getOwnerDocument(); Node html = null; for (Node ctx = node.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { html = ctx; break; } } if (html == null) { html = doc.createElement("html"); node.appendChild(html); } Node head = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("head".equalsIgnoreCase(name)) { head = ctx; break; } } } if (head == null) { head = doc.createElement("head"); Node c1 = null; for (Node ctx = html.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { c1 = ctx; break; } } if (c1 != null) { html.insertBefore(head, c1); } else { html.appendChild(head); } } Node meta = null; Node metaContent = null; for (Node ctx = head.getFirstChild(); ctx != null; ctx = ctx.getNextSibling()) { if (ctx.getNodeType() == Node.ELEMENT_NODE) { String name = ctx.getLocalName(); if (name == null) { name = ctx.getNodeName(); } if ("meta".equalsIgnoreCase(name)) { NamedNodeMap metaAttrs = ctx.getAttributes(); int len = metaAttrs.getLength(); String httpEquiv = null; Node content = null; for (int i = 0; i < len; i++) { Node attr = metaAttrs.item(i); String attrName = attr.getNodeName(); if ("http-equiv".equalsIgnoreCase(attrName)) { httpEquiv = attr.getNodeValue(); } else if ("content".equalsIgnoreCase(attrName)) { content = attr; } } if ("Content-Type".equalsIgnoreCase(httpEquiv)) { meta = ctx; metaContent = content; break; } } } } if (meta == null) { meta = doc.createElement("meta"); // Insert first Node first = head.getFirstChild(); if (first == null) { head.appendChild(meta); } else { head.insertBefore(meta, first); } Node metaHttpEquiv = doc.createAttribute("http-equiv"); meta.getAttributes().setNamedItem(metaHttpEquiv); metaHttpEquiv.setNodeValue("Content-Type"); } if (metaContent == null) { metaContent = doc.createAttribute("content"); meta.getAttributes().setNamedItem(metaContent); } metaContent.setNodeValue(contentType); // phew } children = node.getFirstChild(); if (children != null) { serialize(children, out, convertToCdata); } break; case Node.DOCUMENT_TYPE_NODE: DocumentType doctype = (DocumentType) node; out.write(BRA); out.write(BANG); out.write(encodeText("DOCTYPE ")); value = doctype.getNodeName(); out.write(encodeText(value)); String publicId = doctype.getPublicId(); if (publicId != null) { out.write(encodeText(" PUBLIC ")); out.write(APOS); out.write(encodeText(publicId)); out.write(APOS); } String systemId = doctype.getSystemId(); if (systemId != null) { out.write(encodeText(" SYSTEM ")); out.write(APOS); out.write(encodeText(systemId)); out.write(APOS); } String internalSubset = doctype.getInternalSubset(); if (internalSubset != null) { out.write(encodeText(internalSubset)); } out.write(KET); out.write(eol.getBytes(encoding)); break; case Node.ENTITY_REFERENCE_NODE: value = "&" + node.getNodeValue() + ";"; out.write(encodeText(value)); break; case Node.PROCESSING_INSTRUCTION_NODE: value = "<?" + node.getNodeName() + " " + node.getNodeValue() + "?>"; out.write(encodeText(value)); Node pp = node.getParentNode(); if (pp != null && pp.getNodeType() == Node.DOCUMENT_NODE) { out.write(encodeText(eol)); } break; } if (defined) { undefine(uri); } }
| 14,790
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,791
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,792
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,793
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,794
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,795
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,796
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,797
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,798
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,799
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,800
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,801
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,802
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,803
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,804
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,805
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,806
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) char c = text.charAt(i); if (c == '<') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') if (buf != null) buf.append(c); } } else if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) if (c < 0x20) if (buf == null) buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) buf.append(c); } } else if (buf != null) buf.append(c); } } return (buf == null) ? text : buf.toString(); }
| 14,807
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("<"); } else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append(">"); } else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); } } else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("&"); } } else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); } else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append("""); } else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); } buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); } else if (buf != null) { buf.append(c); } } else if (buf != null) { buf.append(c); } } return (buf == null) ? text : buf.toString(); }
|
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("<"); else if (c == '>') { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append(">"); else if (c == '&') { if (mode == Stylesheet.OUTPUT_HTML && (i + 1) < len && text.charAt(i + 1) == '{') { if (buf != null) { buf.append(c); else { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("&"); else if (c == '\'' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); if (mode == Stylesheet.OUTPUT_HTML) // HTML does not define ', use character entity ref buf.append("'"); else buf.append("'"); else if (c == '"' && inAttr) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append("""); else if (encodeCtl) { if (c < 0x20) { if (buf == null) { buf = new StringBuffer(text.substring(0, i)); buf.append('&'); buf.append('#'); buf.append((int) c); buf.append(';'); else if (buf != null) { buf.append(c); else if (buf != null) { buf.append(c); return (buf == null) ? text : buf.toString(); }
| 14,808
|
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); if (encoder.canEncode(c)) { buf.append(c); } else { // Replace with character entity reference String hex = Integer.toHexString((int) c); buf.append("&#x"); buf.append(hex); buf.append(';'); } } text = buf.toString(); } ByteBuffer encoded = encoder.encode(CharBuffer.wrap(text)); int len = encoded.limit() - encoded.position(); if (encoded.hasArray()) { byte[] ret = encoded.array(); if (ret.length > len) { // Why? byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; } encoded.flip(); byte[] ret = new byte[len]; encoded.get(ret, 0, len); return ret; }
|
final byte[] encodeText(String text) throws IOException { encoder.reset(); boolean htmlNeedingEncoding = (mode == Stylesheet.OUTPUT_HTML && !htmlEncoded); if (!encoder.canEncode(text) || htmlNeedingEncoding) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); if (encoder.canEncode(c)) { buf.append(c); } else { // Replace with character entity reference String hex = Integer.toHexString((int) c); buf.append("&#x"); buf.append(hex); buf.append(';'); } } text = buf.toString(); } ByteBuffer encoded = encoder.encode(CharBuffer.wrap(text)); int len = encoded.limit() - encoded.position(); if (encoded.hasArray()) { byte[] ret = encoded.array(); if (ret.length > len) { // Why? byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; } encoded.flip(); byte[] ret = new byte[len]; encoded.get(ret, 0, len); return ret; }
| 14,809
|
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); if (encoder.canEncode(c)) { buf.append(c); } else { // Replace with character entity reference String hex = Integer.toHexString((int) c); buf.append("&#x"); buf.append(hex); buf.append(';'); } } text = buf.toString(); } ByteBuffer encoded = encoder.encode(CharBuffer.wrap(text)); int len = encoded.limit() - encoded.position(); if (encoded.hasArray()) { byte[] ret = encoded.array(); if (ret.length > len) { // Why? byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; } encoded.flip(); byte[] ret = new byte[len]; encoded.get(ret, 0, len); return ret; }
|
final byte[] encodeText(String text) throws IOException { encoder.reset(); if (!encoder.canEncode(text)) { // Check each character StringBuffer buf = new StringBuffer(); int len = text.length(); for (int i = 0; i < len; i++) { char c = text.charAt(i); if (encoder.canEncode(c)) { buf.append(c); } else { // Replace with character entity reference String hex = Integer.toHexString((int) c); buf.append("&#x"); buf.append(hex); buf.append(';'); } } text = buf.toString(); } ByteBuffer encoded = encoder.encode(CharBuffer.wrap(text)); int len = encoded.limit() - encoded.position(); if (encoded.hasArray()) { byte[] ret = encoded.array(); if (ret.length > len) { // Why? byte[] ret2 = new byte[len]; System.arraycopy(ret, 0, ret2, 0, len); ret = ret2; } return ret; } encoded.flip(); byte[] ret = new byte[len]; encoded.get(ret, 0, len); return ret; }
| 14,810
|
boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); }
|
boolean isDefined(String uri, String prefix) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); }
| 14,812
|
boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); }
|
boolean isDefined(String uri) { return XMLConstants.XML_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || namespaces.containsKey(uri); }
| 14,813
|
public String getNodeValue() throws DOMException;
|
public String getNodeValue() throws DOMException;
| 14,814
|
public void setNodeValue(String nodeValue) throws DOMException;
|
public void setNodeValue(String nodeValue) throws DOMException;
| 14,815
|
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old != null) { BoundedRangeModel model = old.getModel(); if (model != null) model.removeChangeListener(scrollListener); } if (h != null) { BoundedRangeModel model = h.getModel(); if (model != null) model.addChangeListener(scrollListener); } }
|
public void setHorizontalScrollBar(JScrollBar h) { if (horizontalScrollBar == h) return; JScrollBar old = horizontalScrollBar; removeNonNull(old); horizontalScrollBar = h; addNonNull(h, JScrollPane.HORIZONTAL_SCROLLBAR); firePropertyChange("horizontalScrollBar", old, h); sync(); if (old != null) { BoundedRangeModel model = old.getModel(); if (model != null) model.removeChangeListener(scrollListener); } if (h != null) { BoundedRangeModel model = h.getModel(); if (model != null) model.addChangeListener(scrollListener); } }
| 14,816
|
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null) { BoundedRangeModel model = old.getModel(); if (model != null) model.removeChangeListener(scrollListener); } if (v != null) { BoundedRangeModel model = v.getModel(); if (model != null) model.addChangeListener(scrollListener); } }
|
public void setVerticalScrollBar(JScrollBar v) { if (verticalScrollBar == v) return; JScrollBar old = verticalScrollBar; removeNonNull(old); verticalScrollBar = v; addNonNull(v, JScrollPane.VERTICAL_SCROLLBAR); firePropertyChange("verticalScrollBar", old, v); sync(); if (old != null) { BoundedRangeModel model = old.getModel(); if (model != null) model.removeChangeListener(scrollListener); } if (v != null) { BoundedRangeModel model = v.getModel(); if (model != null) model.addChangeListener(scrollListener); } }
| 14,818
|
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); revalidate(); repaint(); firePropertyChange("viewport", old, v); sync(); }
|
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); revalidate(); repaint(); firePropertyChange("viewport", old, v); sync(); }
| 14,820
|
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); revalidate(); repaint(); firePropertyChange("viewport", old, v); sync(); }
|
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); if (old != null) old.removeChangeListener(scrollListener); viewport = v; if (v != null) v.addChangeListener(scrollListener); addNonNull(v, JScrollPane.VIEWPORT); revalidate(); repaint(); firePropertyChange("viewport", old, v); sync(); }
| 14,821
|
public Insets getBorderInsets(Component c);
|
public Insets getBorderInsets(Component c);
| 14,822
|
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
|
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
| 14,823
|
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
|
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); }
| 14,824
|
public void addAttribute(Object name, Object value);
|
public void addAttribute(Object name, Object value);
| 14,825
|
public void addAttributes(AttributeSet attributes);
|
public void addAttributes(AttributeSet attributes);
| 14,826
|
public void removeAttribute(Object name);
|
public void removeAttribute(Object name);
| 14,827
|
public void removeAttributes(AttributeSet attributes);
|
public void removeAttributes(AttributeSet attributes);
| 14,828
|
public void setResolveParent(AttributeSet parent);
|
public void setResolveParent(AttributeSet parent);
| 14,829
|
BadLocationException() { }
|
BadLocationException() { }
| 14,830
|
public EventListener[] getListeners(Class c) { int count, f; EventListener[] result; count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = 0; i < listenerList.length; i += 2) if (listenerList[i] == c) result[f++] = (EventListener) listenerList[i + 1]; return result; }
|
public EventListener[] getListeners(Class c) { int count, f; EventListener[] result; count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = listenerList.length - 2; i >= 0; i -= 2) if (listenerList[i] == c) result[f++] = (EventListener) listenerList[i + 1]; return result; }
| 14,831
|
public InetAddress(byte[] ipaddr, String hostname) { this(ipaddr, hostname, null); }
|
public InetAddress(byte[] ipaddr, String hostname) { this(ipaddr, hostname, null); }
| 14,832
|
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer st = new StringTokenizer(hostname, "."); if (st.countTokens() == 4) { int i; byte[] ip = new byte[ 4]; for (i = 0; i < 4; i++) { try { ip[ i] = Byte.parseByte(st.nextToken()); if ((ip[ i] < 0) || (ip[ 1] > 255)) break; } catch (NumberFormatException e) { break; } } if (i == 4) { return (new InetAddress(ip)); } } // Wasn't an IP, so try the lookup InetAddress[] addresses = getAllByName(hostname); return addresses[ 0]; }
|
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer st = new StringTokenizer(hostname, "."); if (st.countTokens() == 4) { int i; byte[] ip = new byte[ 4]; for (i = 0; i < 4; i++) { try { ip[ i] = Byte.parseByte(st.nextToken()); if ((ip[ i] < 0) || (ip[ 1] > 255)) break; } catch (NumberFormatException e) { break; } } if (i == 4) { return (new Inet4Address(ip)); } } // Wasn't an IP, so try the lookup InetAddress[] addresses = getAllByName(hostname); return addresses[ 0]; }
| 14,833
|
public UnknownHostException(String message) { super(message); }
|
public UnknownHostException() { super(message); }
| 14,834
|
public UnknownHostException(String message) { super(message); }
|
public UnknownHostException(String message) { }
| 14,835
|
Inet6Address(byte[] addr, String host) { super(addr, host, null); this.ipaddress = addr; }
|
Inet6Address(byte[] addr, String host) { super(addr, host, null); this.ipaddress = addr; }
| 14,836
|
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); }
|
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); }
| 14,837
|
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else layoutAlgorithm(parent, VERTICAL, HORIZONTAL); }
|
public void layoutContainer(Container parent) { if (isHorizontalIn(parent)) layoutAlgorithm(parent, HORIZONTAL, VERTICAL); else { SizeRequirements.calculateTiledPositions(height, null, vSizeReqs, vOffsets, vSpans); SizeRequirements.calculateAlignedPositions(width, null, hSizeReqs, hOffsets, hSpans); } for (int i = 0; i < children.length; i++) { Component child = children[i]; child.setBounds(hOffsets[i] + insets.left, vOffsets[i] + insets.top, hSpans[i], vSpans[i]); } }
| 14,838
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,839
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,840
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,841
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); x += sz.width; // Check for overflow. if (x < 0) x = Integer.MAX_VALUE; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMaximumSize(); y += sz.height; // Check for overflow if (y < 0) y = Integer.MAX_VALUE; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,842
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,843
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,844
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,845
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
| 14,846
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(x, y); }
|
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); x += sz.width; y = Math.max(y, sz.height); } } else { // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getMinimumSize(); y += sz.height; x = Math.max(x, sz.width); } } return new Dimension(hReq.minimum, vReq.minimum); }
| 14,847
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
| 14,848
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
| 14,849
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
|
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; List children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (Iterator i = children.iterator(); i.hasNext();) { Component comp = (Component) i.next(); Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } else { hReq = SizeRequirements.getAlignedSizeRequirements(hSizeReqs); vReq = SizeRequirements.getTiledSizeRequirements(vSizeReqs); } return new Dimension(hReq.preferred, vReq.preferred); }
| 14,850
|
public _IDLTypeStub(Delegate delegate) { _set_delegate(delegate); }
|
public _IDLTypeStub() { _set_delegate(delegate); }
| 14,851
|
public _IDLTypeStub(Delegate delegate) { _set_delegate(delegate); }
|
public _IDLTypeStub(Delegate delegate) { }
| 14,852
|
public void setSystemId(String systemID);
|
public void setSystemId(String systemID);
| 14,853
|
public InputStream getInputStream() { return inputStream; }
|
public InputStream getInputStream() { return inputStream; }
| 14,854
|
public Reader getReader() { return reader; }
|
public Reader getReader() { return reader; }
| 14,855
|
public String getPublicId() { return publicId; }
|
public String getPublicId() { return publicId; }
| 14,856
|
public TransformerException(String msg) { super(msg); }
|
public TransformerException(String msg) { super(msg); }
| 14,857
|
public Class getDeclaringClass() { return vmMethod.getDeclaringClass().asClass(); }
|
public Class getDeclaringClass() { return vmMethod.getDeclaringClass().asClass(); }
| 14,858
|
public Class getDeclaringClass() { return vmMethod.getDeclaringClass().asClass(); }
|
public Class getDeclaringClass() { return vmMethod.getDeclaringClass().asClass(); }
| 14,859
|
public TransformAttribute (AffineTransform transform) { if (transform != null) { this.affineTransform = new AffineTransform (transform); } }
|
public TransformAttribute (AffineTransform transform) { if (transform == null) { this.affineTransform = new AffineTransform (transform); } }
| 14,860
|
public TransformAttribute (AffineTransform transform) { if (transform != null) { this.affineTransform = new AffineTransform (transform); } }
|
public TransformAttribute (AffineTransform transform) { if (transform != null) { throw new IllegalArgumentException("Null 'transform' not permitted."); } }
| 14,861
|
public AffineTransform getTransform () { return affineTransform; }
|
public AffineTransform getTransform () { return (AffineTransform) affineTransform.clone(); }
| 14,863
|
public int getIconHeight() { return 16; }
|
public int getIconHeight() { return 16 + getAdditionalHeight(); }
| 14,864
|
public int getIconHeight() { return 16; }
|
public int getIconHeight() { return 16 + getAdditionalHeight(); }
| 14,865
|
public static Icon getCheckBoxIcon() { return new MetalCheckBoxIcon(); }
|
public static Icon getCheckBoxIcon() { if (checkBoxIcon == null) checkBoxIcon = new MetalCheckBoxIcon(); return checkBoxIcon; }
| 14,866
|
public static Icon getCheckBoxMenuItemIcon() { return new CheckBoxMenuItemIcon(); }
|
public static Icon getCheckBoxMenuItemIcon() { if (checkBoxMenuItemIcon == null) checkBoxMenuItemIcon = new CheckBoxMenuItemIcon(); return checkBoxMenuItemIcon; }
| 14,867
|
public static Icon getFileChooserDetailViewIcon() { return new FileChooserDetailViewIcon(); }
|
public static Icon getFileChooserDetailViewIcon() { if (fileChooserDetailViewIcon == null) fileChooserDetailViewIcon = new FileChooserDetailViewIcon(); return fileChooserDetailViewIcon; }
| 14,868
|
public static Icon getFileChooserHomeFolderIcon() { return new FileChooserHomeFolderIcon(); }
|
public static Icon getFileChooserHomeFolderIcon() { if (fileChooserHomeFolderIcon == null) fileChooserHomeFolderIcon = new FileChooserHomeFolderIcon(); return fileChooserHomeFolderIcon; }
| 14,869
|
public static Icon getFileChooserListViewIcon() { return new FileChooserListViewIcon(); }
|
public static Icon getFileChooserListViewIcon() { if (fileChooserListViewIcon == null) fileChooserListViewIcon = new FileChooserListViewIcon(); return fileChooserListViewIcon; }
| 14,870
|
public static Icon getFileChooserNewFolderIcon() { return new FileChooserNewFolderIcon(); }
|
public static Icon getFileChooserNewFolderIcon() { if (fileChooserNewFolderIcon == null) fileChooserNewFolderIcon = new FileChooserNewFolderIcon(); return fileChooserNewFolderIcon; }
| 14,871
|
public static Icon getFileChooserUpFolderIcon() { return new FileChooserUpFolderIcon(); }
|
public static Icon getFileChooserUpFolderIcon() { if (fileChooserUpFolderIcon == null) fileChooserUpFolderIcon = new FileChooserUpFolderIcon(); return fileChooserUpFolderIcon; }
| 14,872
|
public static Icon getInternalFrameDefaultMenuIcon() { return new InternalFrameDefaultMenuIcon(); }
|
public static Icon getInternalFrameDefaultMenuIcon() { if (internalFrameDefaultMenuIcon == null) internalFrameDefaultMenuIcon = new InternalFrameDefaultMenuIcon(); return internalFrameDefaultMenuIcon; }
| 14,873
|
public static Icon getRadioButtonMenuItemIcon() { return new RadioButtonMenuItemIcon(); }
|
public static Icon getRadioButtonMenuItemIcon() { if (radioButtonMenuItemIcon == null) radioButtonMenuItemIcon = new RadioButtonMenuItemIcon(); return radioButtonMenuItemIcon; }
| 14,874
|
public static Icon getTreeComputerIcon() { return new TreeComputerIcon(); }
|
public static Icon getTreeComputerIcon() { if (treeComputerIcon == null) treeComputerIcon = new TreeComputerIcon(); return treeComputerIcon; }
| 14,875
|
public static Icon getTreeFloppyDriveIcon() { return new TreeFloppyDriveIcon(); }
|
public static Icon getTreeFloppyDriveIcon() { if (treeFloppyDriveIcon == null) treeFloppyDriveIcon = new TreeFloppyDriveIcon(); return treeFloppyDriveIcon; }
| 14,876
|
public static Icon getTreeHardDriveIcon() { return new TreeHardDriveIcon(); }
|
public static Icon getTreeHardDriveIcon() { if (treeHardDriveIcon == null) treeHardDriveIcon = new TreeHardDriveIcon(); return treeHardDriveIcon; }
| 14,877
|
public boolean isSelected() { return getModel().isSelected(); }
|
public boolean isSelected() { return getModel().isSelected(); }
| 14,878
|
public Polygon(int[] xpoints, int[] ypoints, int npoints) { this.xpoints = new int[npoints]; this.ypoints = new int[npoints]; System.arraycopy(xpoints, 0, this.xpoints, 0, npoints); System.arraycopy(ypoints, 0, this.ypoints, 0, npoints); this.npoints = npoints; }
|
public Polygon() { this.xpoints = new int[npoints]; this.ypoints = new int[npoints]; System.arraycopy(xpoints, 0, this.xpoints, 0, npoints); System.arraycopy(ypoints, 0, this.ypoints, 0, npoints); this.npoints = npoints; }
| 14,879
|
public Polygon(int[] xpoints, int[] ypoints, int npoints) { this.xpoints = new int[npoints]; this.ypoints = new int[npoints]; System.arraycopy(xpoints, 0, this.xpoints, 0, npoints); System.arraycopy(ypoints, 0, this.ypoints, 0, npoints); this.npoints = npoints; }
|
public Polygon(int[] xpoints, int[] ypoints, int npoints) { this.xpoints = new int[npoints]; this.ypoints = new int[npoints]; System.arraycopy(xpoints, 0, this.xpoints, 0, npoints); System.arraycopy(ypoints, 0, this.ypoints, 0, npoints); this.npoints = npoints; }
| 14,880
|
public void fillPolygon(Polygon polygon) { fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints); }
|
public void fillPolygon(Polygon polygon) { fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints); }
| 14,881
|
public void setMargin(Insets m) { margin = m; revalidate(); repaint(); }
|
public void setMargin(Insets m) { margin = m; revalidate(); repaint(); }
| 14,882
|
public boolean isEnabled();
|
public boolean isEnabled();
| 14,883
|
public void setHorizontalAlignment(int alignment) { // Sets the alignment of the label's contents along the X axis. hor_align = alignment; }
|
public void setHorizontalAlignment(int alignment) { // Sets the alignment of the label's contents along the X axis. hor_align = alignment; }
| 14,884
|
public void setHorizontalTextPosition(int textPosition) { // Sets the horizontal position of the label's text, relative to its image. hor_text_pos = textPosition; }
|
public void setHorizontalTextPosition(int textPosition) { // Sets the horizontal position of the label's text, relative to its image. hor_text_pos = textPosition; }
| 14,885
|
public void setMnemonic(int mne) { getModel().setMnemonic(mne); }
|
public void setMnemonic(int mne) { getModel().setMnemonic(mne); }
| 14,886
|
public void putValue(String key, Object value);
|
public void putValue(String key, Object value);
| 14,887
|
public void setEnabled(boolean b);
|
public void setEnabled(boolean b);
| 14,888
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.