KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > notification > WapProvisioningDocParser


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package sync4j.server.notification;
19
20 import java.io.InputStream JavaDoc;
21
22 import org.kxml.wap.WbxmlParser;
23
24 /**
25  * A parser for WapProvisioningDoc built on top of the WbxmlParser by
26  * setting the corresponding TagTable defined in the class WapProvisioningDocWBXML
27  *
28  * @author Stefano Nichele
29  * @version $Id $
30  */

31 public class WapProvisioningDocParser extends WbxmlParser {
32
33     /**
34      * Calls constructor of WbxmlParser and sets then the appropriate tag table
35      *
36      * @param in an <code>InputStream</code> value
37      * @exception IOException if an error occurs
38      */

39     public WapProvisioningDocParser (InputStream JavaDoc in) throws Exception JavaDoc {
40         super(in);
41
42         setTagTable(0, WapProvisioningDocWBXML.tagTable[0]);
43         setTagTable(1, WapProvisioningDocWBXML.tagTable[1]);
44
45         setAttrStartTable(0, WapProvisioningDocWBXML.attributeStartTable[0]);
46         setAttrStartTable(1, WapProvisioningDocWBXML.attributeStartTable[1]);
47
48         setAttrValueTable(0, WapProvisioningDocWBXML.paramValueTable[0]);
49         setAttrValueTable(1, WapProvisioningDocWBXML.paramValueTable[1]);
50     }
51 }
Popular Tags