| Constructor and Description | 
|---|
| OutputStreamXMLOutput(java.io.OutputStream os)Constructor. | 
| OutputStreamXMLOutput(java.io.OutputStream os,
                     java.lang.String stylesheet)Constructor. | 
| OutputStreamXMLOutput(java.io.Writer writer)Constructor. | 
| OutputStreamXMLOutput(java.io.Writer writer,
                     java.lang.String stylesheet) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAttribute(java.lang.String name,
            java.lang.String value)Add an attribute to a started tag. | 
| void | beginDocument()Begin the XML document. | 
| void | closeTag(java.lang.String tagName)Close tag with given name. | 
| void | finish()Finish writing XML output, closing any underlying resources (such as
 output streams). | 
| void | flush() | 
| void | openCloseTag(java.lang.String tagName)Open and close tag with given name. | 
| void | openCloseTag(java.lang.String tagName,
            XMLAttributeList attributeList)Open and close tag with given name and given attributes. | 
| void | openTag(java.lang.String tagName)Open a tag with given name. | 
| void | openTag(java.lang.String tagName,
       XMLAttributeList attributeList)Open a tag with given name and given attributes. | 
| void | startTag(java.lang.String tagName)Start a tag, with the intention of adding attributes. | 
| void | stopTag(boolean close)End a started tag. | 
| void | writeCDATA(java.lang.String cdata)Write a CDATA section to the XML document. | 
| void | writeText(java.lang.String text)Write text to the XML document. | 
public OutputStreamXMLOutput(@WillCloseWhenClosed
                             java.io.OutputStream os)
os - OutputStream to write XML output topublic OutputStreamXMLOutput(@WillCloseWhenClosed
                             java.io.Writer writer)
writer - Writer to write XML output topublic OutputStreamXMLOutput(@WillCloseWhenClosed
                             java.io.OutputStream os,
                             java.lang.String stylesheet)
os - OutputStream to write XML output tostylesheet - name of stylesheetpublic OutputStreamXMLOutput(@WillCloseWhenClosed
                             java.io.Writer writer,
                             java.lang.String stylesheet)
public void beginDocument()
                   throws java.io.IOException
XMLOutputbeginDocument in interface XMLOutputjava.io.IOExceptionpublic void openTag(java.lang.String tagName)
             throws java.io.IOException
XMLOutputpublic void openTag(java.lang.String tagName,
                    XMLAttributeList attributeList)
             throws java.io.IOException
XMLOutputpublic void openCloseTag(java.lang.String tagName)
                  throws java.io.IOException
XMLOutputopenCloseTag in interface XMLOutputtagName - the tag namejava.io.IOExceptionpublic void openCloseTag(java.lang.String tagName,
                         XMLAttributeList attributeList)
                  throws java.io.IOException
XMLOutputopenCloseTag in interface XMLOutputtagName - the tag nameattributeList - the attributesjava.io.IOExceptionpublic void startTag(java.lang.String tagName)
              throws java.io.IOException
XMLOutputpublic void addAttribute(java.lang.String name,
                         java.lang.String value)
                  throws java.io.IOException
XMLOutputaddAttribute in interface XMLOutputname - the attribute name.value - the attribute value, unescaped.java.io.IOExceptionpublic void stopTag(boolean close)
             throws java.io.IOException
XMLOutputpublic void closeTag(java.lang.String tagName)
              throws java.io.IOException
XMLOutputpublic void writeText(java.lang.String text)
               throws java.io.IOException
XMLOutputpublic void writeCDATA(java.lang.String cdata)
                throws java.io.IOException
XMLOutputwriteCDATA in interface XMLOutputcdata - the character data to writejava.io.IOExceptionpublic void flush()
           throws java.io.IOException
java.io.IOException@DischargesObligation
public void finish()
                                  throws java.io.IOException
XMLOutputSpotBugs is licensed under the LGPL.