com.sun.kvem.midp.pim

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.kvem.midp.pim 
com.sun.kvem.midp.pim
PIM implementation (15-Feb-2005) PIM implementation.

Porting information

PIM persistent storage is based on FileConnection filesystem in this implementation (PIM and FC are both parts of JSR75). Therefore, JSR 75 porting is not requires aby changes in PIM package in most cases. If it's necessary to use another storage (for instance, any native database), only file PIMDatabase.java should be changed. This file contains the interface to persistent storage.

The table below contains methods of the class PIMDatabase which could be redesigned on porting stage.
Task Method Description
Persistent storage initialization public PIMDatabase(String dir) throws IOException The initialization code is placed in constructor of the main class that is PIMDatabase. This constructor has one parameter: the root directory for PIM data. Implementation can ignore this parameter if device doesn't support directories. At this stage implementation should check the integrity of PIM data and execute need initialization procedures.
Getting the set of all list names for the given list type public String[] getListNames(int listType) Method must contain a code that returns PIM list names for the given PIM list type from PIM persistent storage.
Default list names public String getDefaultListName(int listType) Every list type (Contact, Event and Todo) must have a default list name in the PIM persistent storage. Method must return the default name for the list type.
Keys table public Hashtable getKeys(int listType, String listName) throws PIMException Every PIM item in the any list must have an unique key for manipulation. Method returns a hashtable of keys by giving list type and name. Current implementation uses file names as keys, while porting this code could be changed.
Getting PIMItem by key public byte[] getElement(int listType, String listName, String key) throws PIMException Method returns the byte array representation of PIM item by given list type, name and key.
Commiting PIM item public synchronized String commitElement(int listType, String listName, String key, byte[] data) throws PIMException Method really saves the byte array representation of PIM item to the persistent storage and assigns a new key value to it. If storage already contains a PIM item of the same type, name and key, it must be overwritten.
Saving list of categories public synchronized void setCategories(int listType, String listName, String categories) throws PIMException Method saves (overwrites if it already exists) the list of categories for given list type into PIM persistent storage. Parameter categories of this method contains symbolic names of categories separated by '\n'.
Getting list of categories public synchronized String getCategories(int listType, String listName) throws PIMException Method returns the category list from PIM persistent storage. Format of the returning string must be the same as categories parameter in setCategories method.
@since PIM1.0
Java Source File NameTypeComment
AbstractPIMItem.javaClass Partial implementation of PIMItem.
AbstractPIMList.javaClass Generic PIM list.
Contact.javaInterface Represents a single Contact entry in a PIM Contact database. The supported field list for a Contact is also a subset of the fields defined by the vCard specification from the Internet Mail Consortium (http://www.imc.org).
ContactImpl.javaClass Implementation of a PIM contact.
ContactListImpl.javaClass Class ContactListImpl implements methods of PIM interface ContactList.
EmptyPIMField.javaClass
Event.javaInterface Represents a single Event entry in a PIM Event database. The fields are a subset of the fields in the vEvent object defined by the vCalendar 1.0 specification from the Internet Mail Consortium (http://www.imc.org).
EventImpl.javaClass Implementation of a PIM Event.
EventListImpl.javaClass Class EventListImpl implements methods of PIM interface EventList.
KeySortUtility.javaClass Class KeySortUtility contains static method "store" only.
LineReader.javaClass Reader that knows how to read non-blank lines.
MarkableInputStream.javaClass InputStream that supports mark() with an infinite lookahead.
PIMAttribute.javaClass Specification of a PIM attribute.
PIMBridge.javaClass Implementations of shared PIM code.
PIMDatabase.javaClass Handles reading and writing PIM data.
PIMField.javaInterface Representation of a PIM field.
PIMFieldDescriptor.javaClass Specification of a PIM field.
PIMFormat.javaInterface Interface for PIM data encoders and decoders.
PIMHandler.javaClass Porting layer for PIM functionality.
PIMImpl.javaClass Implementation of PIM.
PIMItem.javaInterface Represents the common interfaces of an item for a PIM list. A PIM item represents a collection of data for a single PIM entry. A PIM item is created from a particular PIM list and is associated with that list for the life of the item.
PIMProxy.javaClass Porting layer implementation for PIM functionality.
ScalarPIMField.javaClass
SupportedPIMFields.javaClass Index of supported PIM fields and their descriptors.
ToDo.javaInterface Represents a single To Do item in a PIM To Do database. The fields are a subset of the fields in VTODO defined by the vCalendar specification from the Internet Mail Consortium (http://www.imc.org).
ToDoImpl.javaClass Implementation of a PIM ToDo.
ToDoListImpl.javaClass Class ToDoListImpl implements methods of PIM interface ToDoList.
UnsupportedPIMFormatException.javaClass Exception thrown when a file is not recognized by an encoding.
VectorPIMField.javaClass
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.