Uses of Class
cloud.opencode.base.xml.stax.StaxWriter
Packages that use StaxWriter
Package
Description
OpenCode Base XML Module - Comprehensive XML processing library
OpenCode Base XML 模块 - 全面的 XML 处理库
StAX Package - Streaming API for XML (Pull-mode parsing)
StAX 包 - XML 流式 API(拉模式解析)
-
Uses of StaxWriter in cloud.opencode.base.xml
Methods in cloud.opencode.base.xml that return StaxWriterModifier and TypeMethodDescriptionstatic StaxWriterOpenXml.staxWriter()Creates a StAX writer.static StaxWriterOpenXml.staxWriter(Path path) Creates a StAX writer to file. -
Uses of StaxWriter in cloud.opencode.base.xml.stax
Methods in cloud.opencode.base.xml.stax that return StaxWriterModifier and TypeMethodDescriptionWrites an attribute with boolean value.Writes an attribute with number value.Writes an attribute.Writes an attribute with namespace.Writes an attribute with prefix and namespace.StaxWriter.attributeIfNotNull(String localName, String value) Writes an attribute if value is not null.Writes CDATA content.Writes a comment.static StaxWriterStaxWriter.create()Creates a new writer that writes to a string.static StaxWriterStaxWriter.create(OutputStream output) Creates a new writer that writes to an output stream.static StaxWriterCreates a new writer that writes to a file.StaxWriter.defaultNamespace(String namespaceURI) Writes a default namespace declaration.Writes a complete element with boolean content.Writes a complete element with number content.Writes a complete element with text content.StaxWriter.elementIfNotNull(String localName, String text) Writes a complete element with text content if not null.StaxWriter.emptyElement(String localName) Writes an empty element.StaxWriter.endDocument()Ends the document.StaxWriter.endElement()Ends the current element.StaxWriter.flush()Flushes the writer.StaxWriter.formatted(boolean formatted) Enables formatted output with indentation.StaxWriter.indent(int spaces) Sets the indent size in spaces.Sets the indent string.Writes a namespace declaration.StaxWriter.processingInstruction(String target, String data) Writes a processing instruction.StaxWriter.startDocument()Writes the XML declaration.StaxWriter.startDocument(String encoding, String version) Writes the XML declaration with encoding and version.StaxWriter.startElement(String localName) Starts an element.StaxWriter.startElement(String namespaceURI, String localName) Starts an element with namespace.StaxWriter.startElement(String prefix, String localName, String namespaceURI) Starts an element with prefix and namespace.Writes text content.