Example usage for Java org.dom4j.io XMLWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
XMLWriter(Writer writer, OutputFormat format) | |
XMLWriter(OutputStream out, OutputFormat format) | |
XMLWriter(Writer writer) | |
XMLWriter(OutputStream out) | |
XMLWriter(OutputFormat format) | |
XMLWriter() |
void | close() Closes the underlying Writer |
void | endDocument() |
void | endElement(String namespaceURI, String localName, String qName) |
void | endPrefixMapping(String prefix) |
void | flush() Flushes the underlying Writer |
void | setEscapeText(boolean escapeText) Sets whether text output should be escaped or not. |
void | setIndentLevel(int indentLevel) Set the initial indentation level. |
void | setMaximumAllowedCharacter(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. |
void | setOutputStream(OutputStream out) |
void | setWriter(Writer writer) |
void | startDocument() |
void | startDTD(String name, String publicID, String systemID) |
void | startElement(String namespaceURI, String localName, String qName, Attributes attributes) |
void | startPrefixMapping(String prefix, String uri) |
void | write(Attribute attribute) Writes the given Attribute . |
void | write(Document doc) This will print the |
void | write(Element element) Writes the |
void | write(CDATA cdata) Writes the given CDATA . |
void | write(Comment comment) Writes the given Comment . |
void | write(DocumentType docType) Writes the given DocumentType . |
void | write(Entity entity) Writes the given Entity . |
void | write(Namespace namespace) Writes the given Namespace . |
void | write(ProcessingInstruction processingInstruction) Writes the given ProcessingInstruction . |
void | write(String text) Print out a String , Perfoms the necessary entity escaping and whitespace stripping. |
void | write(Text text) Writes the given Text . |
void | write(Node node) Writes the given Node . |
void | write(Object object) Writes the given object which should be a String, a Node or a List of Nodes. |
void | writeClose(Element element) Writes the closing tag of an Element |
void | writeClose(String qualifiedName) |
void | writeOpen(Element element) Writes the opening tag of an Element , including its Attribute s but without its content. |