|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Simple interface to write XML documents. Mainly created to make it simple to create both XML and WBXML documents.
Method Summary | |
void |
addCharacters(char[] ch,
int start,
int length)
Adds a segment of text. |
void |
addCharacters(java.lang.String str)
Adds a segment of text. |
void |
addEmptyElement(java.lang.String tag)
Adds an empty element tag. |
void |
addEmptyElement(java.lang.String tag,
XmlAttribute[] attribs)
Adds an empty start element tag with attributes. |
void |
addEndElement()
Adds an end element tag. |
void |
addStartElement(java.lang.String tag)
Adds a start element tag. |
void |
addStartElement(java.lang.String tag,
XmlAttribute[] attribs)
Adds a start element tag with attributes. |
void |
flush()
Flushes the xml document. |
void |
setDoctype(java.lang.String publicID)
Sets a public ID doctype. |
void |
setDoctype(java.lang.String name,
java.lang.String systemURI)
Sets a system URI doctype. |
void |
setDoctype(java.lang.String name,
java.lang.String publicID,
java.lang.String publicURI)
Sets a public ID doctype. |
Method Detail |
public void setDoctype(java.lang.String publicID)
publicID
- XML public IDpublic void setDoctype(java.lang.String name, java.lang.String systemURI)
name
- NamesystemURI
- System URIpublic void setDoctype(java.lang.String name, java.lang.String publicID, java.lang.String publicURI)
name
- NamepublicID
- PublicIDpublicURI
- PublicURIpublic void addStartElement(java.lang.String tag) throws java.io.IOException
tag
- tag
java.io.IOException
- io errorpublic void addStartElement(java.lang.String tag, XmlAttribute[] attribs) throws java.io.IOException
tag
- Tagattribs
- Attributes
java.io.IOException
- io errorpublic void addEmptyElement(java.lang.String tag) throws java.io.IOException
tag
- Tag
java.io.IOException
- io errorpublic void addEmptyElement(java.lang.String tag, XmlAttribute[] attribs) throws java.io.IOException
tag
- Tagattribs
- Attributes
java.io.IOException
- io errorpublic void addEndElement() throws java.io.IOException
java.io.IOException
- io errorpublic void addCharacters(char[] ch, int start, int length) throws java.io.IOException
ch
- The chars to addstart
- Start offset of the ch array.length
- Number of chars to add
java.io.IOException
- io errorpublic void addCharacters(java.lang.String str) throws java.io.IOException
str
- Text to add
java.io.IOException
- io errorpublic void flush() throws java.io.IOException
java.io.IOException
- io error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |