public class WbxmlEncoder
extends java.lang.Object
| Constructor and Description | 
|---|
WbxmlEncoder(java.lang.String defaultNamespace,
            WbxmlOutput buf)
The constructor creates an internal document handler. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
convert(javax.xml.transform.Source in)
converts the XML data from the given SAX InputSource and writes the
 result to the given OutputStream 
 | 
void | 
end()  | 
void | 
endByteArray()  | 
void | 
endString()  | 
void | 
header()  | 
void | 
startByteArray(int len)  | 
void | 
startString()  | 
void | 
switchNamespace(java.lang.String ns)  | 
void | 
writeByteArray(byte[] bytes)  | 
void | 
writeElement(java.lang.String name)  | 
void | 
writeEmptyElement(java.lang.String name)  | 
void | 
writeStrI(java.lang.String s)  | 
public WbxmlEncoder(java.lang.String defaultNamespace,
                    WbxmlOutput buf)
public void convert(javax.xml.transform.Source in)
             throws org.xml.sax.SAXException,
                    java.io.IOException
org.xml.sax.SAXExceptionjava.io.IOExceptionpublic void writeStrI(java.lang.String s)
               throws java.io.IOException
java.io.IOExceptionpublic void startString()
                 throws java.io.IOException
java.io.IOExceptionpublic void endString()
               throws java.io.IOException
java.io.IOExceptionpublic void switchNamespace(java.lang.String ns)
                     throws java.io.IOException
java.io.IOExceptionpublic void writeElement(java.lang.String name)
                  throws java.io.IOException
java.io.IOExceptionpublic void writeEmptyElement(java.lang.String name)
                       throws java.io.IOException
java.io.IOExceptionpublic void end()
public void startByteArray(int len)
                    throws java.io.IOException
java.io.IOExceptionpublic void endByteArray()
public void writeByteArray(byte[] bytes)
                    throws java.io.IOException
java.io.IOExceptionpublic void header()
            throws java.io.IOException
java.io.IOExceptionCopyright © 2021. All Rights Reserved.