com.funambol.common.pim
Class PimUtils

java.lang.Object
  extended by com.funambol.common.pim.Utils
      extended by com.funambol.common.pim.PimUtils

public class PimUtils
extends Utils

This class provides basic utilities to handle standard formats such as vCard and vCal. The class extends Utils, providing utilities JSR75 related and specific. This class shall only be compiled/used on platforms where JSR75 is available.


Field Summary
 
Fields inherited from class com.funambol.common.pim.Utils
FOLDING_INDENT_CHAR
 
Constructor Summary
PimUtils(java.lang.String charset)
           
 
Method Summary
 void addCategories(java.lang.String field, PIMList list, PIMItem item, boolean addNewCategory)
          This function will add Category data to provided PIMItem.
static void println(java.io.OutputStream os, java.lang.String msg)
          Print a new line to an output stream
 
Methods inherited from class com.funambol.common.pim.Utils
decode, escape, escape, fold, unescape, unfold, unfoldNewline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PimUtils

public PimUtils(java.lang.String charset)
Method Detail

addCategories

public void addCategories(java.lang.String field,
                          PIMList list,
                          PIMItem item,
                          boolean addNewCategory)
                   throws PIMException
This function will add Category data to provided PIMItem.

Parameters:
field - The categories field extracted (comma or colon separated list)
list - This is the PIMList that the PIMItem belongs to.
item - The PIMItem that will have Category data added to it.
addNewCategory - add the category if it does not exist already
Throws:
PIMException

println

public static void println(java.io.OutputStream os,
                           java.lang.String msg)
                    throws PIMException
Print a new line to an output stream

Parameters:
os - the output stream
msg - the message to print
Throws:
javax.microedition.pim.PIMException
PIMException


Copyright © 2001-2009 Funambol.