Java Doc for VCardFormat.java in  » 6.0-JDK-Modules » j2me » com » sun » kvem » midp » pim » formats » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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.formats 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.kvem.midp.pim.formats.EndMatcher
      com.sun.kvem.midp.pim.formats.VCardFormat

All known Subclasses:   com.sun.kvem.midp.pim.formats.VCard30Format,  com.sun.kvem.midp.pim.formats.VCard21Format,
VCardFormat
abstract public class VCardFormat extends EndMatcher implements PIMFormat(Code)
Partial implementation of PIMEncoding for VCard/2.1 and VCard/3.0.



Constructor Summary
public  VCardFormat()
     VCard formatting class.

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 serialized data cannot beinterpreted by this encoding.
public  voidencode(OutputStream out, String encoding, PIMItem pimItem)
     Serializes a PIMItem.
abstract protected  StringgetBinaryEncodingName()
     Gets the name of the default binary encoding.
abstract protected  StringgetCategoryProperty()
     Gets the vCard property name used to store categories.
abstract protected  StringgetClassProperty()
     Gets the vCard property name used to store classes.
public  StringgetName()
     Gets the code name of this encoding (e.g.
abstract protected  StringgetVersion()
     Returns the version number of vCard implemented.
public  booleanisTypeSupported(int pimListType)
     Checks to see if a given PIM list type is supported by this encoding.
abstract protected  intparseAttributes(String[] attributes)
     Gets the binary value describing all flags in a vCard line.
abstract protected  voidwriteAttributes(Writer w, int attributes)
     Writes the attributes for a field.
protected  voidwriteDate(Writer w, long date)
     Writes a vCard date field.
protected  voidwriteStringArray(Writer w, String[] data)
     Writes a vCard field with multiple elements, such as ADR.
protected  voidwriteValue(Writer w, PIMItem item, int field, int index)
     Writes a single vCard line.


Constructor Detail
VCardFormat
public VCardFormat()(Code)
VCard formatting class.




Method Detail
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 serialized data cannot beinterpreted by this encoding. a non-empty array of PIMItems containing the objects described inthe serialized data, or null if no items are available
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



getBinaryEncodingName
abstract protected String getBinaryEncodingName()(Code)
Gets the name of the default binary encoding. This is "BASE64" for vCard 2.1 and "B" for vCard 3.0. the default binary encoding



getCategoryProperty
abstract protected String getCategoryProperty()(Code)
Gets the vCard property name used to store categories. the vCard category property name



getClassProperty
abstract protected String getClassProperty()(Code)
Gets the vCard property name used to store classes. the class property name



getName
public String getName()(Code)
Gets the code name of this encoding (e.g. "VCARD/2.1"). the encoding name



getVersion
abstract protected String getVersion()(Code)
Returns the version number of vCard implemented. the VCard version number



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



parseAttributes
abstract protected int parseAttributes(String[] attributes)(Code)
Gets the binary value describing all flags in a vCard line.
Parameters:
  attributes - fields to be parsed binary coded settings



writeAttributes
abstract protected void writeAttributes(Writer w, int attributes) throws IOException(Code)
Writes the attributes for a field.
Parameters:
  w - output stream target
Parameters:
  attributes - data to be written
throws:
  IOException - if an error occurs while writing



writeDate
protected void writeDate(Writer w, long date) throws IOException(Code)
Writes a vCard date field.
Parameters:
  w - output stream target
Parameters:
  date - data to be written
throws:
  IOException - if an error occurs while writing



writeStringArray
protected void writeStringArray(Writer w, String[] data) throws IOException(Code)
Writes a vCard field with multiple elements, such as ADR.
Parameters:
  w - output stream target
Parameters:
  data - the strings to write
throws:
  IOException - if an error occurs while writing



writeValue
protected void writeValue(Writer w, PIMItem item, int field, int index) throws IOException(Code)
Writes a single vCard line.
Parameters:
  w - output stream target
Parameters:
  item - the data to to written
Parameters:
  field - the attribute to be processed
Parameters:
  index - the offset of the data to be processed
throws:
  IOException - if an error occurs while writing



Methods inherited from com.sun.kvem.midp.pim.formats.EndMatcher
public boolean match(StringBuffer sb)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.