|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.kxml.io.AbstractXmlWriter
org.kxml.wap.WbxmlWriter
public class WbxmlWriter
a class for converting ("binary encoding") XML to WBXML. Todo:
Field Summary |
---|
Fields inherited from class org.kxml.io.AbstractXmlWriter |
---|
current |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
WbxmlWriter(java.io.OutputStream out)
|
Method Summary | |
---|---|
void |
attribute(java.lang.String name,
java.lang.String value)
writes an attribute. |
void |
checkPending(boolean degenerated)
|
void |
close()
|
void |
endTag()
Abstract method for writing an end tag. |
void |
flush()
ATTENTION: flush cannot work since Wbxml documents cannot need buffering. |
void |
setAttrStartTable(int page,
java.lang.String[] attrStartTable)
Sets the attribute start Table for a given page. |
void |
setAttrValueTable(int page,
java.lang.String[] attrValueTable)
Sets the attribute value Table for a given page. |
void |
setTagTable(int page,
java.lang.String[] tagTable)
Sets the tag table for a given page. |
void |
startTag(PrefixMap prefixMap,
java.lang.String name)
abstract method that must be overwritten by a method actually writing the resolved start tag without namespace checking. |
void |
write(char[] chars,
int start,
int len)
|
void |
writeLegacy(int type,
java.lang.String data)
currently ignored! |
Methods inherited from class org.kxml.io.AbstractXmlWriter |
---|
attribute, getPrefixMap, startTag, startTag, startTag |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
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 out) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Writer
java.io.IOException
public void checkPending(boolean degenerated) throws java.io.IOException
java.io.IOException
public void startTag(PrefixMap prefixMap, java.lang.String name) throws java.io.IOException
AbstractXmlWriter
startTag
in class AbstractXmlWriter
java.io.IOException
public void attribute(java.lang.String name, java.lang.String value)
AbstractXmlWriter
attribute
in class AbstractXmlWriter
public void write(char[] chars, int start, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void endTag() throws java.io.IOException
AbstractXmlWriter
endTag
in class AbstractXmlWriter
java.io.IOException
public void writeLegacy(int type, java.lang.String data)
writeLegacy
in class AbstractXmlWriter
public void setTagTable(int page, java.lang.String[] tagTable)
public void setAttrStartTable(int page, java.lang.String[] attrStartTable)
public void setAttrValueTable(int page, java.lang.String[] attrValueTable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |