WbxmlSerializer createSerializer

"floriola2000" <[email protected]> Tue, 06 Apr 2004 19:26:38 -0000
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
Hi,

> Floriola wrote:
> 
> > For the WbxmlParser in kxml2, there is a setTagTable method, used 
> > to configure custom tag pages for the wbxml parser.
> > 
> > Is there a way to set the custom tag pages for the KXmlParser? I 
> > noticed that there is no setTagTable method in this case...
> 
> Custom tag tables are specific to WBXML, used for compression. Thus, 
> a corresponding method does not make sense for the KXmlParser.
> 

I think I understand now. If you want to convert pages from xml to
wbxml with custom table pages, you have to use
WbxmlSerializer.setTagTable()

In WV.java, there is already this method:

public WbxmlParser createParser () throws IOException {

Whould it be possible to add also the following method:

    public WbxmlSerializer createSerializer () throws IOException {
        
        WbxmlSerializer serializer = new WbxmlSerializer();

        serializer.setTagTable (0, WV.tagTablePage0);
        serializer.setTagTable (1, WV.tagTablePage1);
        serializer.setTagTable (2, WV.tagTablePage2);
        serializer.setTagTable (3, WV.tagTablePage3);
        serializer.setTagTable (4, WV.tagTablePage4);
        serializer.setTagTable (5, WV.tagTablePage5);
        serializer.setTagTable (6, WV.tagTablePage6);
        serializer.setTagTable (7, WV.tagTablePage7);
        serializer.setTagTable (8, WV.tagTablePage8);
        serializer.setTagTable (9, WV.tagTablePage9);
        serializer.setTagTable (10, WV.tagTablePageA);

        serializer.setAttrStartTable (0, WV.attrStartTable);
        
        serializer.setAttrValueTable (0, WV.attrValueTable);

        return serializer;
    }

Regards,
Floriola





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/xmlpull-dev/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/