Java org.dom4j.io XMLWriter fields, constructors, methods, implement or subclass

Example usage for Java org.dom4j.io XMLWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.dom4j.io XMLWriter.

The text is from its open source code.

Subclass

org.dom4j.io.XMLWriter has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidclose()
Closes the underlying Writer
voidendDocument()
voidendElement(String namespaceURI, String localName, String qName)
voidendPrefixMapping(String prefix)
voidflush()
Flushes the underlying Writer
voidsetEscapeText(boolean escapeText)
Sets whether text output should be escaped or not.
voidsetIndentLevel(int indentLevel)
Set the initial indentation level.
voidsetMaximumAllowedCharacter(int maximumAllowedCharacter)
Sets the maximum allowed character code that should be allowed unescaped such as 127 in US-ASCII (7 bit) or 255 in ISO- (8 bit) or -1 to not escape any characters (other than the special XML characters like < > &) If this is not explicitly set then it is defaulted from the encoding.
voidsetOutputStream(OutputStream out)
voidsetWriter(Writer writer)
voidstartDocument()
voidstartDTD(String name, String publicID, String systemID)
voidstartElement(String namespaceURI, String localName, String qName, Attributes attributes)
voidstartPrefixMapping(String prefix, String uri)
voidwrite(Attribute attribute)
Writes the given Attribute .
voidwrite(Document doc)

This will print the Document to the current Writer.

voidwrite(Element element)

Writes the Element , including its Attribute s, and its value, and all its content (child nodes) to the current Writer.

voidwrite(CDATA cdata)
Writes the given CDATA .
voidwrite(Comment comment)
Writes the given Comment .
voidwrite(DocumentType docType)
Writes the given DocumentType .
voidwrite(Entity entity)
Writes the given Entity .
voidwrite(Namespace namespace)
Writes the given Namespace .
voidwrite(ProcessingInstruction processingInstruction)
Writes the given ProcessingInstruction .
voidwrite(String text)

Print out a String , Perfoms the necessary entity escaping and whitespace stripping.

voidwrite(Text text)
Writes the given Text .
voidwrite(Node node)
Writes the given Node .
voidwrite(Object object)
Writes the given object which should be a String, a Node or a List of Nodes.
voidwriteClose(Element element)

Writes the closing tag of an Element

voidwriteClose(String qualifiedName)
voidwriteOpen(Element element)

Writes the opening tag of an Element , including its Attribute s but without its content.