public class XMLWriter
extends java.lang.Object
Constructor and Description |
---|
XMLWriter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
endAttribute()
Ends an attribute
|
boolean |
endCData()
Starts a CData section
|
boolean |
endComment()
Starts a comment section
|
boolean |
endDocument()
Ends the document
|
boolean |
endDTD()
Ends a DTD
|
boolean |
endDTDAttlist()
Ends a DTD attribute list
|
boolean |
endDTDElement()
Ends a DTD element list
|
boolean |
endDTDEntity()
Ends a DTD entity
|
boolean |
endElement(Env env)
Ends an element
|
boolean |
endElementNS(Env env)
Ends an element
|
boolean |
endPI()
Ends a pi section
|
Value |
flush()
Flushes the output and returns the result.
|
boolean |
fullEndElement(Env env)
Ends an element
|
boolean |
openMemory(Env env)
Opens the writer for a memory target
|
boolean |
openURI(Env env,
Path path)
Opens the writer for a uri target
|
Value |
outputMemory()
Returns the memory result
|
boolean |
setIndent(boolean isIndent)
enables indentation
|
boolean |
setIndentString(StringValue value)
sets the indentation string
|
boolean |
startAttribute(Env env,
StringValue name)
Starts an attribute
|
boolean |
startAttributeNS(Env env,
StringValue prefix,
StringValue name,
StringValue uri)
Starts an attribute with a namespace
|
boolean |
startCData()
Starts a CData section
|
boolean |
startComment()
Starts a comment section
|
boolean |
startDocument(Env env,
StringValue version,
StringValue encoding,
StringValue standalone)
Starts the document
|
boolean |
startDTD(StringValue name,
StringValue publicId,
StringValue systemId)
Starts a DTD
|
boolean |
startDTDAttlist(StringValue name)
Starts a DTD attribute list
|
boolean |
startDTDElement(StringValue name)
Starts a DTD element list
|
boolean |
startDTDEntity(StringValue name)
Starts a DTD entity
|
boolean |
startElement(Env env,
StringValue name)
Starts an element
|
boolean |
startElementNS(Env env,
StringValue prefix,
StringValue name,
StringValue uri)
Starts a namespaced element
|
boolean |
startPI(Env env,
StringValue target)
Starts a processing instruction section
|
boolean |
text(Env env,
StringValue text)
Writes text
|
java.lang.String |
toString() |
boolean |
writeAttribute(Env env,
StringValue name,
StringValue value)
Writes a complete attribute
|
boolean |
writeAttributeNS(Env env,
StringValue prefix,
StringValue name,
StringValue uri,
StringValue value)
Writes a complete attribute
|
boolean |
writeCData(Env env,
StringValue value)
Writes a complete cdata
|
boolean |
writeComment(Env env,
StringValue value)
Writes a complete comment
|
boolean |
writeDTD(Env env,
StringValue name,
StringValue publicId,
StringValue systemId,
StringValue subset)
Writes a DTD
|
boolean |
writeDTDAttlist(Env env,
StringValue name,
StringValue content)
Writes a DTD attribute list
|
boolean |
writeDTDElement(Env env,
StringValue name,
StringValue content)
Writes a DTD element
|
boolean |
writeDTDEntity(Env env,
StringValue name,
StringValue content)
Writes a DTD entity
|
boolean |
writeElement(Env env,
StringValue name,
StringValue content)
Writes a complete element
|
boolean |
writeElementNS(Env env,
StringValue prefix,
StringValue name,
StringValue uri,
StringValue content)
Writes a complete element
|
boolean |
writePI(Env env,
StringValue name,
StringValue value)
Writes a pi
|
boolean |
writeRaw(Env env,
StringValue value)
Writes raw text
|
public Value flush()
public boolean openMemory(Env env)
public Value outputMemory()
public boolean endAttribute()
public boolean endCData()
public boolean endComment()
public boolean endPI()
public boolean endDocument()
public boolean endDTDAttlist()
public boolean endDTDElement()
public boolean endDTDEntity()
public boolean endDTD()
public boolean endElement(Env env)
public boolean endElementNS(Env env)
public boolean fullEndElement(Env env)
public boolean setIndent(boolean isIndent)
public boolean setIndentString(StringValue value)
public boolean startAttribute(Env env, StringValue name)
public boolean startAttributeNS(Env env, StringValue prefix, StringValue name, StringValue uri)
public boolean startCData()
public boolean startComment()
public boolean startDocument(Env env, StringValue version, StringValue encoding, StringValue standalone)
public boolean startDTDAttlist(StringValue name)
public boolean startDTDElement(StringValue name)
public boolean startDTDEntity(StringValue name)
public boolean startDTD(StringValue name, StringValue publicId, StringValue systemId)
public boolean startElement(Env env, StringValue name)
public boolean startElementNS(Env env, StringValue prefix, StringValue name, StringValue uri)
public boolean startPI(Env env, StringValue target)
public boolean text(Env env, StringValue text)
public boolean writeAttribute(Env env, StringValue name, StringValue value)
public boolean writeAttributeNS(Env env, StringValue prefix, StringValue name, StringValue uri, StringValue value)
public boolean writeCData(Env env, StringValue value)
public boolean writeComment(Env env, StringValue value)
public boolean writeDTDAttlist(Env env, StringValue name, StringValue content)
public boolean writeDTDElement(Env env, StringValue name, StringValue content)
public boolean writeDTDEntity(Env env, StringValue name, StringValue content)
public boolean writeDTD(Env env, StringValue name, StringValue publicId, StringValue systemId, StringValue subset)
public boolean writeElement(Env env, StringValue name, StringValue content)
public boolean writeElementNS(Env env, StringValue prefix, StringValue name, StringValue uri, StringValue content)
public boolean writePI(Env env, StringValue name, StringValue value)
public boolean writeRaw(Env env, StringValue value)
public java.lang.String toString()
toString
in class java.lang.Object