Package org.mozilla.javascript.xmlimpl
Class XmlProcessor
java.lang.Object
org.mozilla.javascript.xmlimpl.XmlProcessor
- All Implemented Interfaces:
Serializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LinkedBlockingDeque
<DocumentBuilder> private DocumentBuilderFactory
private boolean
private boolean
private boolean
private int
private boolean
private static final long
private TransformerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCommentsTo
(List<Node> list, Node node) private void
addProcessingInstructionsTo
(List<Node> list, Node node) private void
addTextNodesToRemoveAndTrim
(List<Node> toRemove, Node node) private void
beautifyElement
(Element e, int indent) private void
private void
(package private) final String
ecmaToXmlString
(Node node) private String
elementToXmlString
(Element element) (package private) String
escapeAttributeValue
(Object value) private String
(package private) String
escapeTextValue
(Object value) private DocumentBuilder
private DocumentBuilderFactory
(package private) final int
(package private) final boolean
(package private) final boolean
(package private) final boolean
(package private) final boolean
(package private) Document
private void
readObject
(ObjectInputStream stream) private void
(package private) final void
(package private) final void
setIgnoreComments
(boolean b) (package private) final void
setIgnoreProcessingInstructions
(boolean b) (package private) final void
setIgnoreWhitespace
(boolean b) (package private) final void
setPrettyIndent
(int i) (package private) final void
setPrettyPrinting
(boolean b) private String
(package private) final Node
private String
toXmlNewlines
(String rv)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ignoreComments
private boolean ignoreComments -
ignoreProcessingInstructions
private boolean ignoreProcessingInstructions -
ignoreWhitespace
private boolean ignoreWhitespace -
prettyPrint
private boolean prettyPrint -
prettyIndent
private int prettyIndent -
dom
-
xform
-
documentBuilderPool
-
errorHandler
-
-
Constructor Details
-
XmlProcessor
XmlProcessor()
-
-
Method Details
-
readObject
- Throws:
IOException
ClassNotFoundException
-
configureSecureDBF
-
configureSecureTF
-
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
-
getDomFactory
-
getDocumentBuilderFromPool
- Throws:
ParserConfigurationException
-
returnDocumentBuilderToPool
-
addProcessingInstructionsTo
-
addCommentsTo
-
addTextNodesToRemoveAndTrim
-
toXml
- Throws:
SAXException
-
newDocument
Document newDocument() -
toString
-
escapeAttributeValue
-
escapeTextValue
-
escapeElementValue
-
elementToXmlString
-
ecmaToXmlString
-
beautifyElement
-