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 DocumentBuilderFactoryprivate booleanprivate booleanprivate booleanprivate intprivate booleanprivate static final longprivate TransformerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCommentsTo(List<Node> list, Node node) private voidaddProcessingInstructionsTo(List<Node> list, Node node) private voidaddTextNodesToRemoveAndTrim(List<Node> toRemove, Node node) private voidbeautifyElement(Element e, int indent) private voidprivate void(package private) final StringecmaToXmlString(Node node) private StringelementToXmlString(Element element) (package private) StringescapeAttributeValue(Object value) private String(package private) StringescapeTextValue(Object value) private DocumentBuilderprivate DocumentBuilderFactory(package private) final int(package private) final boolean(package private) final boolean(package private) final boolean(package private) final boolean(package private) Documentprivate voidreadObject(ObjectInputStream stream) private void(package private) final void(package private) final voidsetIgnoreComments(boolean b) (package private) final voidsetIgnoreProcessingInstructions(boolean b) (package private) final voidsetIgnoreWhitespace(boolean b) (package private) final voidsetPrettyIndent(int i) (package private) final voidsetPrettyPrinting(boolean b) private String(package private) final Nodeprivate StringtoXmlNewlines(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:
IOExceptionClassNotFoundException
-
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
-