com.caucho.quercus.lib.xml
Class XMLWriter

java.lang.Object
  extended by com.caucho.quercus.lib.xml.XMLWriter

public class XMLWriter
extends java.lang.Object

XMLWriter


Constructor Summary
XMLWriter()
          Default constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter()
Default constructor

Method Detail

flush

public Value flush()
Flushes the output and returns the result.


openMemory

public boolean openMemory(Env env)
Opens the writer for a memory target


openURI

public boolean openURI(Env env,
                       Path path)
Opens the writer for a uri target


outputMemory

public Value outputMemory()
Returns the memory result


endAttribute

public boolean endAttribute()
Ends an attribute


endCData

public boolean endCData()
Starts a CData section


endComment

public boolean endComment()
Starts a comment section


endPI

public boolean endPI()
Ends a pi section


endDocument

public boolean endDocument()
Ends the document


endDTDAttlist

public boolean endDTDAttlist()
Ends a DTD attribute list


endDTDElement

public boolean endDTDElement()
Ends a DTD element list


endDTDEntity

public boolean endDTDEntity()
Ends a DTD entity


endDTD

public boolean endDTD()
Ends a DTD


endElement

public boolean endElement(Env env)
Ends an element


endElementNS

public boolean endElementNS(Env env)
Ends an element


fullEndElement

public boolean fullEndElement(Env env)
Ends an element


setIndent

public boolean setIndent(boolean isIndent)
enables indentation


setIndentString

public boolean setIndentString(StringValue value)
sets the indentation string


startAttribute

public boolean startAttribute(Env env,
                              StringValue name)
Starts an attribute


startAttributeNS

public boolean startAttributeNS(Env env,
                                StringValue prefix,
                                StringValue name,
                                StringValue uri)
Starts an attribute with a namespace


startCData

public boolean startCData()
Starts a CData section


startComment

public boolean startComment()
Starts a comment section


startDocument

public boolean startDocument(Env env,
                             StringValue version,
                             StringValue encoding,
                             StringValue standalone)
Starts the document


startDTDAttlist

public boolean startDTDAttlist(StringValue name)
Starts a DTD attribute list


startDTDElement

public boolean startDTDElement(StringValue name)
Starts a DTD element list


startDTDEntity

public boolean startDTDEntity(StringValue name)
Starts a DTD entity


startDTD

public boolean startDTD(StringValue name,
                        StringValue publicId,
                        StringValue systemId)
Starts a DTD


startElement

public boolean startElement(Env env,
                            StringValue name)
Starts an element


startElementNS

public boolean startElementNS(Env env,
                              StringValue prefix,
                              StringValue name,
                              StringValue uri)
Starts a namespaced element


startPI

public boolean startPI(Env env,
                       StringValue target)
Starts a processing instruction section


text

public boolean text(Env env,
                    StringValue text)
Writes text


writeAttribute

public boolean writeAttribute(Env env,
                              StringValue name,
                              StringValue value)
Writes a complete attribute


writeAttributeNS

public boolean writeAttributeNS(Env env,
                                StringValue prefix,
                                StringValue name,
                                StringValue uri,
                                StringValue value)
Writes a complete attribute


writeCData

public boolean writeCData(Env env,
                          StringValue value)
Writes a complete cdata


writeComment

public boolean writeComment(Env env,
                            StringValue value)
Writes a complete comment


writeDTDAttlist

public boolean writeDTDAttlist(Env env,
                               StringValue name,
                               StringValue content)
Writes a DTD attribute list


writeDTDElement

public boolean writeDTDElement(Env env,
                               StringValue name,
                               StringValue content)
Writes a DTD element


writeDTDEntity

public boolean writeDTDEntity(Env env,
                              StringValue name,
                              StringValue content)
Writes a DTD entity


writeDTD

public boolean writeDTD(Env env,
                        StringValue name,
                        StringValue publicId,
                        StringValue systemId,
                        StringValue subset)
Writes a DTD


writeElement

public boolean writeElement(Env env,
                            StringValue name,
                            StringValue content)
Writes a complete element


writeElementNS

public boolean writeElementNS(Env env,
                              StringValue prefix,
                              StringValue name,
                              StringValue uri,
                              StringValue content)
Writes a complete element


writePI

public boolean writePI(Env env,
                       StringValue name,
                       StringValue value)
Writes a pi


writeRaw

public boolean writeRaw(Env env,
                        StringValue value)
Writes raw text


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object