|
|||||||||
| 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.
| Nested Class Summary | |
|---|---|
private class |
OutputStreamXMLOutput.WriterQuoteMetaCharacters
|
| Field Summary | |
|---|---|
private int |
nestingLevel
|
private boolean |
newLine
|
private static java.lang.String |
OPENING
|
private java.io.Writer |
out
|
private static MetaCharacterMap |
textMetaCharacterMap
|
| Constructor Summary | |
|---|---|
OutputStreamXMLOutput(java.io.OutputStream os)
Constructor. |
|
| Method Summary | |
|---|---|
void |
beginDocument()
Begin the XML document. |
void |
closeTag(java.lang.String tagName)
Close tag with given name. |
private void |
emitTag(java.lang.String tagName,
boolean close)
|
private void |
emitTag(java.lang.String tagName,
java.lang.String attributes,
boolean close)
|
void |
finish()
Finish writing XML output, closing any underlying resources (such as output streams). |
private void |
indent()
|
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 |
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 |
| Field Detail |
|---|
private static final java.lang.String OPENING
private static final MetaCharacterMap textMetaCharacterMap
private java.io.Writer out
private int nestingLevel
private boolean newLine
| Constructor Detail |
|---|
public OutputStreamXMLOutput(java.io.OutputStream os)
os - OutputStream to write XML output to| Method Detail |
|---|
public void beginDocument()
throws java.io.IOException
XMLOutput
beginDocument in interface XMLOutputjava.io.IOException
public void openTag(java.lang.String tagName)
throws java.io.IOException
XMLOutput
openTag in interface XMLOutputtagName - the tag name
java.io.IOException
public void openTag(java.lang.String tagName,
XMLAttributeList attributeList)
throws java.io.IOException
XMLOutput
openTag in interface XMLOutputtagName - the tag nameattributeList - the attributes
java.io.IOException
public void openCloseTag(java.lang.String tagName)
throws java.io.IOException
XMLOutput
openCloseTag in interface XMLOutputtagName - the tag name
java.io.IOException
public void openCloseTag(java.lang.String tagName,
XMLAttributeList attributeList)
throws java.io.IOException
XMLOutput
openCloseTag in interface XMLOutputtagName - the tag nameattributeList - the attributes
java.io.IOException
private void emitTag(java.lang.String tagName,
boolean close)
throws java.io.IOException
java.io.IOException
private void emitTag(java.lang.String tagName,
java.lang.String attributes,
boolean close)
throws java.io.IOException
java.io.IOException
public void closeTag(java.lang.String tagName)
throws java.io.IOException
XMLOutput
closeTag in interface XMLOutputtagName - the tag name
java.io.IOException
public void writeText(java.lang.String text)
throws java.io.IOException
XMLOutput
writeText in interface XMLOutputtext - the text to write
java.io.IOException
public void writeCDATA(java.lang.String cdata)
throws java.io.IOException
XMLOutput
writeCDATA in interface XMLOutputcdata - the character data to write
java.io.IOException
public void finish()
throws java.io.IOException
XMLOutput
finish in interface XMLOutputjava.io.IOException
private void indent()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||