| java.lang.Object com.sun.kvem.midp.pim.formats.EndMatcher com.sun.kvem.midp.pim.formats.VCalendar10Format
VCalendar10Format | public class VCalendar10Format extends EndMatcher implements PIMFormat(Code) | | Implementation of PIMEncoding for VCalendar/1.0.
|
Method Summary | |
public PIMItem[] | decode(InputStream in, String encoding, PIMList list) 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 throws: UnsupportedPIMFormatException - if the serializeddata cannot be interpreted by this encoding. | public void | encode(OutputStream out, String encoding, PIMItem pimItem) Serializes a PIMItem. | public String | getName() Gets the code name of this encoding (e.g. | public boolean | isTypeSupported(int pimListType) Checks to see if a given PIM list type is supported by this encoding. |
VCalendar10Format | public VCalendar10Format()(Code) | | VCalendar 1.0 formatter.
|
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 throws: UnsupportedPIMFormatException - if the serializeddata cannot be interpreted by this encoding. a non-empty array of PIMItems containing the objects describedin the serialized data, or null if no items are available throws: IOException - if a read error occurs |
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 a write error occurs |
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 |
|
|