| java.lang.Object com.sun.kvem.midp.pim.PIMDatabase
PIMDatabase | public class PIMDatabase (Code) | | Handles reading and writing PIM data.
|
Constructor Summary | |
public | PIMDatabase() Default constructor. | public | PIMDatabase(String inpDir) Constructor for creating a database object for the given path. |
PIMDatabase | public PIMDatabase()(Code) | | Default constructor.
|
PIMDatabase | public PIMDatabase(String inpDir) throws IOException(Code) | | Constructor for creating a database object for the given path.
Parameters: inpDir - path of root directory throws: IOException - if an error occurs accessing the file |
commitElement | public synchronized String commitElement(int listType, String listName, String key, byte[] data) throws PIMException(Code) | | Commits the PIM item by key.
Parameters: listType - CONTACT_LIST, EVENT_LIST or TODO_LIST Parameters: listName - name of list Parameters: key - key of PIM item Parameters: data - data of PIM item key of PIM item throws: PIMException - in case of I/O error |
getCategories | public synchronized String getCategories(int listType, String listName) throws PIMException(Code) | | Gets the string of supported categories.
Parameters: listType - CONTACT_LIST, EVENT_LIST or TODO_LIST Parameters: listName - name of list string of supported categories throws: PIMException - in case of I/O error See Also: PIMDatabase.setCategories |
getDefaultListName | public String getDefaultListName(int listType)(Code) | | Gets the default list name for given list type.
Parameters: listType - - CONTACT_LIST, EVENT_LIST or TODO_LIST default name |
getElement | public byte[] getElement(int listType, String listName, String key) throws PIMException(Code) | | Gets the element by key.
Parameters: listType - - CONTACT_LIST, EVENT_LIST or TODO_LIST Parameters: listName - name of list Parameters: key - key value data by key throws: PIMException - in case of I/O error |
getKeys | public Hashtable getKeys(int listType, String listName) throws PIMException(Code) | | Gets the key table for given list name.
Parameters: listType - - CONTACT_LIST, EVENT_LIST or TODO_LIST Parameters: listName - name of list hashkey of keys throws: PIMException - in case of I/O error |
getListNames | public String[] getListNames(int listType)(Code) | | Gets the list of names for given list type.
Parameters: listType - - CONTACT_LIST, EVENT_LIST or TODO_LIST array of names |
setCategories | public synchronized void setCategories(int listType, String listName, String categories) throws PIMException(Code) | | Sets the new categories.
Parameters: listType - CONTACT_LIST, EVENT_LIST or TODO_LIST Parameters: listName - name of list Parameters: categories - string of new categories throws: PIMException - in case of I/O error See Also: PIMDatabase.getCategories |
|
|