FileDocCategorySizeDatePackage
PIM.javaAPI DocphoneME MR2 API (J2ME)4107Wed May 02 18:00:28 BST 2007javax.microedition.pim

PIM

public abstract class PIM extends Object
This class is defined by the JSR-75 specification PDA Optional Packages for the J2ME™ Platform

Fields Summary
public static final int
CONTACT_LIST
public static final int
EVENT_LIST
public static final int
TODO_LIST
public static final int
READ_ONLY
public static final int
WRITE_ONLY
public static final int
READ_WRITE
private static PIM
instance
Current PIM instance handle.
Constructors Summary
protected PIM()

    
Methods Summary
public abstract PIMItem[]fromSerialFormat(java.io.InputStream is, java.lang.String enc)

public static javax.microedition.pim.PIMgetInstance()


    // JAVADOC COMMENT ELIDED
        
        synchronized (PIM.class) {
            if (instance == null) {
                String className =
                    Configuration.getProperty("javax.microedition.pim.impl");
                if (className == null) {
                    className = "com.sun.kvem.midp.pim.PIMImpl";
                }
                boolean excThrowed = false;
                try {
                    instance = (PIM) Class.forName(className).newInstance();
                } catch (ClassNotFoundException e) {
                    excThrowed = true;
                } catch (Error e) {
                    excThrowed = true;
                } catch (IllegalAccessException e) {
                    excThrowed = true;
                } catch (InstantiationException e) {
                    excThrowed = true;
                }
                if (excThrowed) {
                    throw new Error("PIM implementation '"
                        + className + "' could not be initialized.");
                }
            }
            return instance;
        }
    
public abstract java.lang.String[]listPIMLists(int pimListType)

public abstract PIMListopenPIMList(int pimListType, int mode)

public abstract PIMListopenPIMList(int pimListType, int mode, java.lang.String name)

public abstract java.lang.String[]supportedSerialFormats(int pimListType)

public abstract voidtoSerialFormat(PIMItem item, java.io.OutputStream os, java.lang.String enc, java.lang.String dataFormat)