| com.sun.kvem.midp.pim.PIMFormat
All known Subclasses: com.sun.kvem.midp.pim.formats.VCalendar10Format, com.sun.kvem.midp.pim.formats.VCardFormat,
PIMFormat | public interface PIMFormat (Code) | | Interface for PIM data encoders and decoders.
|
decode | public PIMItem[] decode(InputStream in, String encoding, PIMList list) throws IOException(Code) | | Constructs one or more PIMItems from serialized data.
Parameters: in - Stream containing serialized data Parameters: encoding - Character encoding of the stream Parameters: list - PIMList to which items should be added, or null if the itemsshould not be part of a list a non-empty array of PIMItems containing the objects describedin the serialized data, or null if no items are available throws: UnsupportedPIMFormatException - if the serialized data cannot beinterpreted by this encoding. throws: IOException - if an error occurs while reading |
encode | public void encode(OutputStream out, String encoding, PIMItem pimItem) throws IOException(Code) | | Serializes a PIMItem.
Parameters: out - Stream to which serialized data is written Parameters: encoding - Character encoding to use for serialized data Parameters: pimItem - The item to write to the stream throws: IOException - if an error occurs while writing |
getName | public String getName()(Code) | | Gets the code name of this encoding (e.g. "VCARD/2.1").
the encoding name |
isTypeSupported | public boolean isTypeSupported(int pimListType)(Code) | | Checks to see if a given PIM list type is supported by this encoding.
Parameters: pimListType - int representing the PIM list type to check true if the type can be read and written by this encoding,false otherwise |
|
|