| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLWriter
Interface for tools writing XML files. XMLWriters are not thread safe and must not be accessed concurrently.
| Method Summary | |
|---|---|
 void | 
addAttribute(String key,
             String value)
Add a XML attribute to the current XML Element.  | 
 void | 
endElement()
End the previously opened element.  | 
 void | 
setDocType(String docType)
Sets the docType of the document.  | 
 void | 
setEncoding(String encoding)
Sets the encoding of the document.  | 
 void | 
startElement(String name)
Start an XML Element tag.  | 
 void | 
writeMarkup(String text)
Add a preformatted markup to the current element tag  | 
 void | 
writeText(String text)
Add a value text to the current element tag This will perform XML escaping to guarantee valid content  | 
| Method Detail | 
|---|
void setEncoding(String encoding)
encoding - the encoding
IllegalStateException - if the generation of the document has already startedvoid setDocType(String docType)
docType - the docType
IllegalStateException - if the generation of the document has already startedvoid startElement(String name)
name - 
void addAttribute(String key,
                  String value)
startElement(String)
key - value - 
IllegalStateException - if no element tag is currently in processvoid writeText(String text)
text - 
IllegalStateException - if no element tag got started yetvoid writeMarkup(String text)
text - 
IllegalStateException - if no element tag got started yetvoid endElement()
startElement(String)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||