Class XmlProcessor

java.lang.Object
org.mozilla.javascript.xmlimpl.XmlProcessor
All Implemented Interfaces:
Serializable

class XmlProcessor extends Object implements Serializable
  • Field Details

  • Constructor Details

    • XmlProcessor

      XmlProcessor()
  • Method Details

    • readObject

      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • configureSecureDBF

      private void configureSecureDBF(DocumentBuilderFactory dbf)
    • configureSecureTF

      private void configureSecureTF(TransformerFactory xform)
    • setDefault

      final void setDefault()
    • setIgnoreComments

      final void setIgnoreComments(boolean b)
    • setIgnoreWhitespace

      final void setIgnoreWhitespace(boolean b)
    • setIgnoreProcessingInstructions

      final void setIgnoreProcessingInstructions(boolean b)
    • setPrettyPrinting

      final void setPrettyPrinting(boolean b)
    • setPrettyIndent

      final void setPrettyIndent(int i)
    • isIgnoreComments

      final boolean isIgnoreComments()
    • isIgnoreProcessingInstructions

      final boolean isIgnoreProcessingInstructions()
    • isIgnoreWhitespace

      final boolean isIgnoreWhitespace()
    • isPrettyPrinting

      final boolean isPrettyPrinting()
    • getPrettyIndent

      final int getPrettyIndent()
    • toXmlNewlines

      private String toXmlNewlines(String rv)
    • getDomFactory

      private DocumentBuilderFactory getDomFactory()
    • getDocumentBuilderFromPool

      private DocumentBuilder getDocumentBuilderFromPool() throws ParserConfigurationException
      Throws:
      ParserConfigurationException
    • returnDocumentBuilderToPool

      private void returnDocumentBuilderToPool(DocumentBuilder db)
    • addProcessingInstructionsTo

      private void addProcessingInstructionsTo(List<Node> list, Node node)
    • addCommentsTo

      private void addCommentsTo(List<Node> list, Node node)
    • addTextNodesToRemoveAndTrim

      private void addTextNodesToRemoveAndTrim(List<Node> toRemove, Node node)
    • toXml

      final Node toXml(String defaultNamespaceUri, String xml) throws SAXException
      Throws:
      SAXException
    • newDocument

      Document newDocument()
    • toString

      private String toString(Node node)
    • escapeAttributeValue

      String escapeAttributeValue(Object value)
    • escapeTextValue

      String escapeTextValue(Object value)
    • escapeElementValue

      private String escapeElementValue(String s)
    • elementToXmlString

      private String elementToXmlString(Element element)
    • ecmaToXmlString

      final String ecmaToXmlString(Node node)
    • beautifyElement

      private void beautifyElement(Element e, int indent)