org.marre.wap.nokia
Class NokiaOtaBrowserSettings

java.lang.Object
  extended byorg.marre.wap.nokia.NokiaOtaBrowserSettings
All Implemented Interfaces:
WbxmlDocument, XmlDocument

public class NokiaOtaBrowserSettings
extends java.lang.Object
implements WbxmlDocument


Field Summary
protected  java.util.List myBookmarks
           
static java.lang.String[] OTA_ATTR_START_TOKENS
           
static java.lang.String[] OTA_ATTR_VALUE_TOKENS
           
static java.lang.String[] OTA_TAG_TOKENS
           
static java.lang.String WBXML_SETTINGS_CONTENT_TYPE
           
static java.lang.String XML_BOOKMARKS_CONTENT_TYPE
           
static java.lang.String XML_SETTINGS_CONTENT_TYPE
           
 
Constructor Summary
NokiaOtaBrowserSettings()
           
 
Method Summary
 void addBookmark(java.lang.String name, java.lang.String url)
           
 java.lang.String getContentType()
          Returns the content-type of this xml document.
 java.lang.String getWbxmlContentType()
           
 XmlWriter getWbxmlWriter(java.io.OutputStream os)
           
protected  void writeBookmarksTo(XmlWriter xmlWriter)
           
 void writeXmlTo(XmlWriter xmlWriter)
          Writes this object to the given XmlWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WBXML_SETTINGS_CONTENT_TYPE

public static final java.lang.String WBXML_SETTINGS_CONTENT_TYPE
See Also:
Constant Field Values

XML_SETTINGS_CONTENT_TYPE

public static final java.lang.String XML_SETTINGS_CONTENT_TYPE
See Also:
Constant Field Values

XML_BOOKMARKS_CONTENT_TYPE

public static final java.lang.String XML_BOOKMARKS_CONTENT_TYPE
See Also:
Constant Field Values

OTA_TAG_TOKENS

public static final java.lang.String[] OTA_TAG_TOKENS

OTA_ATTR_START_TOKENS

public static final java.lang.String[] OTA_ATTR_START_TOKENS

OTA_ATTR_VALUE_TOKENS

public static final java.lang.String[] OTA_ATTR_VALUE_TOKENS

myBookmarks

protected java.util.List myBookmarks
Constructor Detail

NokiaOtaBrowserSettings

public NokiaOtaBrowserSettings()
Method Detail

writeBookmarksTo

protected void writeBookmarksTo(XmlWriter xmlWriter)
                         throws java.io.IOException
Throws:
java.io.IOException

addBookmark

public void addBookmark(java.lang.String name,
                        java.lang.String url)

getContentType

public java.lang.String getContentType()
Description copied from interface: XmlDocument
Returns the content-type of this xml document.

Specified by:
getContentType in interface XmlDocument
Returns:
Content-type. Ex: "text/xml".

getWbxmlContentType

public java.lang.String getWbxmlContentType()
Specified by:
getWbxmlContentType in interface WbxmlDocument

getWbxmlWriter

public XmlWriter getWbxmlWriter(java.io.OutputStream os)
Specified by:
getWbxmlWriter in interface WbxmlDocument

writeXmlTo

public void writeXmlTo(XmlWriter xmlWriter)
                throws java.io.IOException
Description copied from interface: XmlDocument
Writes this object to the given XmlWriter.

Specified by:
writeXmlTo in interface XmlDocument
Parameters:
xmlWriter - XmlWriter to write to.
Throws:
java.io.IOException - Thrown if failed to write to xmlwriter.


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.