|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.wap.wbxml.WbxmlWriter
Constructor Summary | |
WbxmlWriter(java.io.OutputStream os)
|
|
WbxmlWriter(java.io.OutputStream os,
java.lang.String[] theTagTokens,
java.lang.String[] theAttrStrartTokens,
java.lang.String[] theAttrValueTokens)
|
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 |
addOpaqueData(byte[] buff)
|
void |
addOpaqueData(byte[] buff,
int off,
int len)
|
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()
Writes the wbxml to stream. |
void |
setAttrStartTokens(java.lang.String[] theAttrStrartTokens)
Sets the attribute start tokens. |
void |
setAttrValueTokens(java.lang.String[] theAttrValueTokens)
Sets the attribute value tokens. |
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. |
void |
setTagTokens(java.lang.String[] theTagTokens)
Sets the tag tokens. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WbxmlWriter(java.io.OutputStream os, java.lang.String[] theTagTokens, java.lang.String[] theAttrStrartTokens, java.lang.String[] theAttrValueTokens)
public WbxmlWriter(java.io.OutputStream os)
Method Detail |
public void flush() throws java.io.IOException
flush
in interface XmlWriter
java.io.IOException
public void setDoctype(java.lang.String name, java.lang.String systemURI)
XmlWriter
setDoctype
in interface XmlWriter
name
- NamesystemURI
- System URIpublic void setDoctype(java.lang.String name, java.lang.String publicID, java.lang.String publicURI)
XmlWriter
setDoctype
in interface XmlWriter
name
- NamepublicID
- PublicIDpublicURI
- PublicURIpublic void setDoctype(java.lang.String publicID)
XmlWriter
setDoctype
in interface XmlWriter
publicID
- XML public IDpublic void addStartElement(java.lang.String tag) throws java.io.IOException
XmlWriter
addStartElement
in interface XmlWriter
tag
- tag
java.io.IOException
- io errorpublic void addStartElement(java.lang.String tag, XmlAttribute[] attribs) throws java.io.IOException
XmlWriter
addStartElement
in interface XmlWriter
tag
- Tagattribs
- Attributes
java.io.IOException
- io errorpublic void addEmptyElement(java.lang.String tag) throws java.io.IOException
XmlWriter
addEmptyElement
in interface XmlWriter
tag
- Tag
java.io.IOException
- io errorpublic void addEmptyElement(java.lang.String tag, XmlAttribute[] attribs) throws java.io.IOException
XmlWriter
addEmptyElement
in interface XmlWriter
tag
- Tagattribs
- Attributes
java.io.IOException
- io errorpublic void addEndElement() throws java.io.IOException
XmlWriter
addEndElement
in interface XmlWriter
java.io.IOException
- io errorpublic void addCharacters(char[] ch, int start, int length) throws java.io.IOException
XmlWriter
addCharacters
in interface XmlWriter
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
XmlWriter
addCharacters
in interface XmlWriter
str
- Text to add
java.io.IOException
- io errorpublic void addOpaqueData(byte[] buff) throws java.io.IOException
java.io.IOException
public void addOpaqueData(byte[] buff, int off, int len) throws java.io.IOException
java.io.IOException
public void setTagTokens(java.lang.String[] theTagTokens)
theTagTokens
- first element in this array defines tag #5public void setAttrStartTokens(java.lang.String[] theAttrStrartTokens)
theAttrStrartTokens
- first element in this array defines attribute #85public void setAttrValueTokens(java.lang.String[] theAttrValueTokens)
theAttrValueTokens
- first element in this array defines attribute #05
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |