|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.xml.OutputStreamXMLOutput
public class OutputStreamXMLOutput
Write XML to an output stream.
Constructor Summary | |
---|---|
OutputStreamXMLOutput(java.io.OutputStream os)
Constructor. |
|
OutputStreamXMLOutput(java.io.OutputStream os,
java.lang.String stylesheet)
Constructor. |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputStreamXMLOutput(@WillCloseWhenClosed java.io.OutputStream os)
os
- OutputStream to write XML output topublic OutputStreamXMLOutput(@WillCloseWhenClosed java.io.OutputStream os, java.lang.String stylesheet)
os
- OutputStream to write XML output tostylesheet
- name of stylesheetMethod Detail |
---|
public void beginDocument() throws java.io.IOException
XMLOutput
beginDocument
in interface XMLOutput
java.io.IOException
public void openTag(java.lang.String tagName) throws java.io.IOException
XMLOutput
openTag
in interface XMLOutput
tagName
- the tag name
java.io.IOException
public void openTag(java.lang.String tagName, XMLAttributeList attributeList) throws java.io.IOException
XMLOutput
openTag
in interface XMLOutput
tagName
- the tag nameattributeList
- the attributes
java.io.IOException
public void openCloseTag(java.lang.String tagName) throws java.io.IOException
XMLOutput
openCloseTag
in interface XMLOutput
tagName
- the tag name
java.io.IOException
public void openCloseTag(java.lang.String tagName, XMLAttributeList attributeList) throws java.io.IOException
XMLOutput
openCloseTag
in interface XMLOutput
tagName
- the tag nameattributeList
- the attributes
java.io.IOException
public void startTag(java.lang.String tagName) throws java.io.IOException
XMLOutput
startTag
in interface XMLOutput
tagName
- the tag name
java.io.IOException
public void addAttribute(java.lang.String name, java.lang.String value) throws java.io.IOException
XMLOutput
addAttribute
in interface XMLOutput
name
- the attribute name.value
- the attribute value, unescaped.
java.io.IOException
public void stopTag(boolean close) throws java.io.IOException
XMLOutput
stopTag
in interface XMLOutput
close
- true if the element has no content.
java.io.IOException
public void closeTag(java.lang.String tagName) throws java.io.IOException
XMLOutput
closeTag
in interface XMLOutput
tagName
- the tag name
java.io.IOException
public void writeText(java.lang.String text) throws java.io.IOException
XMLOutput
writeText
in interface XMLOutput
text
- the text to write
java.io.IOException
public void writeCDATA(java.lang.String cdata) throws java.io.IOException
XMLOutput
writeCDATA
in interface XMLOutput
cdata
- the character data to write
java.io.IOException
@DischargesObligation public void finish() throws java.io.IOException
XMLOutput
finish
in interface XMLOutput
java.io.IOException
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |