Java Doc for FormatSupport.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.FormatSupport

FormatSupport
public class FormatSupport (Code)
Supporting methods for interpreting vCard and vCalendar encodings.

Inner Class :public static class DataElement

Field Summary
final public static  StringBASE64
     Code name of the Base64 binary encoding.
final public static  charDAILY
     Repeat rule daily frequency char representation.
final public static  charDAY_IN_MONTH
     Repeat rule day-in-month char representation.
final public static  charDAY_IN_YEAR
     Repeat rule day-in-year char representation.
final public static  charMONTHLY
     Repeat rule monthly frequency char representation.
final public static  charMONTH_IN_YEAR
     Repeat rule month-in-year char representation.
final public static  StringPLAIN_TEXT
     Code name of plain text binary encoding.
final public static  StringQUOTED_PRINTABLE
     Code name of the Quoted-Printable binary encoding.
final public static  StringUTF8
     Name of default character encoding.
final public static  charWEEKLY
     Repeat rule weekly frequency char representation.
final public static  charWEEK_IN_MONTH
     Repeat rule week-in-month char representation.
final public static  charYEARLY
     Repeat rule yearly frequency char representation.


Method Summary
public static  booleancontains(int[] a, int value)
     Checks to see if a sorted array of integers contains a given integer.
public static  StringconvertString(String data, String encoding, String charset)
     Converts a string from the given UTF-8 plain text encoding to the specified encoding.
public static  StringgetAttributeValue(String[] attributes, String key, String defaultValue)
     Gets an attribute of the form (key)(value), if one exists in the supplied attributes list.
Parameters:
  attributes - an array of attributes
Parameters:
  key - the attribute key (e.g.
public static  StringgetCharSet(String[] attributes)
     Gets the character set specified by the given property attributes.
public static  StringgetEncoding(String[] attributes)
     Gets the encoding used for a value with the given attributes.
public static  Stringjoin(String[] elements, String separator)
     Joins the elements of a string array together into a single string.
public static  byte[]parseBinary(String[] attributes, String data)
     Interpret a vCard or vCalendar data element as a byte array, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a class toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine.
public static  DataElementparseObjectLine(String line)
     Extracts data from a vCard or vCalendar line.
public static  StringparseString(String[] attributes, String data)
     Interpret a vCard or vCalendar data element as a string, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a class toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine.
public static  String[]parseStringArray(String[] attributes, String data)
     Interpret a vCard or vCalendar data element as a string array, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a call toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine.
public static  voidsort(int[] a)
     Sorts an array of integers.
public static  String[]split(String data, char separatorChar, int startingPoint, boolean skipFirstIfEmpty)
     Parses a separated list of strings into a string array.
public static  String[]split(String data, char separatorChar, int startingPoint)
     Parses a separated list of strings into a string array.

Field Detail
BASE64
final public static String BASE64(Code)
Code name of the Base64 binary encoding.



DAILY
final public static char DAILY(Code)
Repeat rule daily frequency char representation.



DAY_IN_MONTH
final public static char DAY_IN_MONTH(Code)
Repeat rule day-in-month char representation.



DAY_IN_YEAR
final public static char DAY_IN_YEAR(Code)
Repeat rule day-in-year char representation.



MONTHLY
final public static char MONTHLY(Code)
Repeat rule monthly frequency char representation.



MONTH_IN_YEAR
final public static char MONTH_IN_YEAR(Code)
Repeat rule month-in-year char representation.



PLAIN_TEXT
final public static String PLAIN_TEXT(Code)
Code name of plain text binary encoding.



QUOTED_PRINTABLE
final public static String QUOTED_PRINTABLE(Code)
Code name of the Quoted-Printable binary encoding.



UTF8
final public static String UTF8(Code)
Name of default character encoding.



WEEKLY
final public static char WEEKLY(Code)
Repeat rule weekly frequency char representation.



WEEK_IN_MONTH
final public static char WEEK_IN_MONTH(Code)
Repeat rule week-in-month char representation.



YEARLY
final public static char YEARLY(Code)
Repeat rule yearly frequency char representation.





Method Detail
contains
public static boolean contains(int[] a, int value)(Code)
Checks to see if a sorted array of integers contains a given integer.
Parameters:
  a - input array to be checked
Parameters:
  value - to be checked int the array true if the value is found int the array



convertString
public static String convertString(String data, String encoding, String charset)(Code)
Converts a string from the given UTF-8 plain text encoding to the specified encoding.
Parameters:
  data - input data to be converted
Parameters:
  encoding - input data encoding
Parameters:
  charset - output encoding encoded string



getAttributeValue
public static String getAttributeValue(String[] attributes, String key, String defaultValue)(Code)
Gets an attribute of the form (key)(value), if one exists in the supplied attributes list.
Parameters:
  attributes - an array of attributes
Parameters:
  key - the attribute key (e.g. "CHARSET=")
Parameters:
  defaultValue - a default value to be returned if no matchingattribute is found. the value of the requested attribute, or defaultValue if theattribute is not present.



getCharSet
public static String getCharSet(String[] attributes)(Code)
Gets the character set specified by the given property attributes. The default is UTF-8, unless the attributes contain a CHARSET= entry.
Parameters:
  attributes - an array of vCard or vCalendar property attributes the encoding specified by the attributes



getEncoding
public static String getEncoding(String[] attributes)(Code)
Gets the encoding used for a value with the given attributes.
Parameters:
  attributes - an array of attributes either VCardSupport.QUOTED_PRINTABLE, VCardSupport.BASE64or VCardSupport.PLAIN_TEXT



join
public static String join(String[] elements, String separator)(Code)
Joins the elements of a string array together into a single string.
Parameters:
  elements - the string array
Parameters:
  separator - the string to be included between each pair ofsuccessive elements a string containing, alternately, elements of the string arrayand the separator string



parseBinary
public static byte[] parseBinary(String[] attributes, String data)(Code)
Interpret a vCard or vCalendar data element as a byte array, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a class toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine. the decoded binary data



parseObjectLine
public static DataElement parseObjectLine(String line) throws UnsupportedPIMFormatException(Code)
Extracts data from a vCard or vCalendar line.
Parameters:
  line - the input line, in the form(propertyname)[;(attributes)]:(data) the property data
throws:
  UnsupportedPIMFormatException - if the line is not in the expectedformat



parseString
public static String parseString(String[] attributes, String data)(Code)
Interpret a vCard or vCalendar data element as a string, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a class toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine. the decoded string data



parseStringArray
public static String[] parseStringArray(String[] attributes, String data)(Code)
Interpret a vCard or vCalendar data element as a string array, taking into account any encoding parameters specified in the attribute array.
Parameters:
  attributes - An array of attributes obtained from a call toparseObjectLine.
Parameters:
  data - The string data of a vCard or vCalendar object line,obtained from a call to parseObjectLine. the decoded string array data



sort
public static void sort(int[] a)(Code)
Sorts an array of integers.
Parameters:
  a - the list of integers



split
public static String[] split(String data, char separatorChar, int startingPoint, boolean skipFirstIfEmpty)(Code)
Parses a separated list of strings into a string array. An escaped separator (backslash followed by separatorChar) is not treated as a separator.
Parameters:
  data - input list to be parsed
Parameters:
  separatorChar - the character used to separate items
Parameters:
  startingPoint - Only use the part of the string thatfollows this index
Parameters:
  skipFirstIfEmpty - whether the first element should be skipedif it's empty (data starts with the separator).This flag is used to support empty category name a non-null string array containing string elements



split
public static String[] split(String data, char separatorChar, int startingPoint)(Code)
Parses a separated list of strings into a string array. An escaped separator (backslash followed by separatorChar) is not treated as a separator.
Parameters:
  data - input list to be parsed
Parameters:
  separatorChar - the character used to separate items
Parameters:
  startingPoint - Only use the part of the string thatfollows this index a non-null string array containing string elements



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.