| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLWriter
User: matthewhorridge
 The Univeristy Of Manchester
 Medical Informatics Group
 Date: May 30, 2006
 
| Method Summary | |
|---|---|
 void | 
endDocument()
Causes all open elements, including the document root element, to be closed.  | 
 java.lang.String | 
getDefaultNamespace()
Gets the default namespace that the rdfwriter uses.  | 
 XMLWriterNamespaceManager | 
getNamespacePrefixes()
Gets the rdfwriter's namespace manager.  | 
 java.lang.String | 
getXMLBase()
 | 
 void | 
setEncoding(java.lang.String encoding)
Sets the encoding for the document that the rdfwriter produces.  | 
 void | 
setWrapAttributes(boolean b)
Causes the current element's attributes to be wrapped in the output.  | 
 void | 
startDocument(java.lang.String rootElementName)
Starts writing the document.  | 
 void | 
writeAttribute(java.lang.String attr,
               java.lang.String val)
Writes an attribute of the last element to be started (that has not been closed).  | 
 void | 
writeComment(java.lang.String commentText)
 | 
 void | 
writeEndElement()
Writes the closing tag of the last element to be started.  | 
 void | 
writeStartElement(java.lang.String name)
Writes the start of an element  | 
 void | 
writeTextContent(java.lang.String text)
Writes a text element  | 
| Method Detail | 
|---|
void setEncoding(java.lang.String encoding)
encoding - The encoding.java.lang.String getDefaultNamespace()
XMLWriterNamespaceManager getNamespacePrefixes()
java.lang.String getXMLBase()
void setWrapAttributes(boolean b)
void startDocument(java.lang.String rootElementName)
                   throws java.io.IOException
rootElementName - The name of the root element.
java.io.IOException
void endDocument()
                 throws java.io.IOException
java.io.IOException
void writeStartElement(java.lang.String name)
                       throws java.io.IOException
name - The tag name of the element to be written.
java.io.IOException
void writeEndElement()
                     throws java.io.IOException
java.io.IOException
void writeAttribute(java.lang.String attr,
                    java.lang.String val)
                    throws java.io.IOException
attr - The name of the attributeval - The value of the attribute
java.io.IOException
void writeTextContent(java.lang.String text)
                      throws java.io.IOException
text - The text to be written
java.io.IOException
void writeComment(java.lang.String commentText)
                  throws java.io.IOException
java.io.IOException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||