|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecta_vcard.android.syncml.pim.vcard.VCardParser_V21
a_vcard.android.syncml.pim.vcard.VCardParser_V30
public class VCardParser_V30
This class is used to parse vcard3.0.
Please refer to vCard Specification 3.0 (http://tools.ietf.org/html/rfc2426)
Field Summary |
---|
Fields inherited from class a_vcard.android.syncml.pim.vcard.VCardParser_V21 |
---|
DEFAULT_CHARSET, mBuilder, mEncoding, mReader, mWarningValueMap, sDefaultEncoding |
Constructor Summary | |
---|---|
VCardParser_V30()
|
Method Summary | |
---|---|
protected java.lang.String |
getBase64(java.lang.String firstString)
vCard 3.0 does not require two CRLF at the last of BASE64 data. |
protected java.lang.String |
getLine()
|
protected java.lang.String |
getNonEmptyLine()
vCard 3.0 requires that the line with space at the beginning of the line must be combined with previous line. |
protected java.lang.String |
getVersion()
|
protected void |
handleAgent(java.lang.String propertyValue)
vCard 2.1 specifies AGENT allows one vcard entry. |
protected void |
handleAnyParam(java.lang.String paramName,
java.lang.String paramValue)
Mainly for "X-" type. |
protected void |
handleParams(java.lang.String params)
vCard 3.0 allows iana-token as paramType, while vCard 2.1 does not. |
protected void |
handleType(java.lang.String ptypevalues)
vCard 3.0 defines param = param-name "=" param-value *("," param-value) param-name = iana-token / x-name param-value = ptext / quoted-string quoted-string = DQUOTE QSAFE-CHAR DQUOTE |
protected boolean |
isValidEncoding(java.lang.String encoding)
|
protected boolean |
isValidPropertyName(java.lang.String propertyName)
|
protected java.lang.String |
maybeUnescape(char ch)
Returns unescaped String if the character should be unescaped. |
protected java.lang.String |
maybeUnescapeText(java.lang.String text)
ESCAPED-CHAR = "\\" / "\;" / "\," / "\n" / "\N") ; \\ encodes \, \n or \N encodes newline ; \; encodes ;, \, encodes , Note: Apple escape ':' into '\:' while does not escape '\' |
protected boolean |
readBeginVCard(boolean allowGarbage)
vcard = [group "."] "BEGIN" ":" "VCARD" 1*CRLF 1*(contentline) ;A vCard object MUST include the VERSION, FN and N types. |
protected void |
readEndVCard(boolean useCache,
boolean allowGarbage)
The arguments useCache and allowGarbase are usually true and false accordingly when this function is called outside this function itself. |
Methods inherited from class a_vcard.android.syncml.pim.vcard.VCardParser_V21 |
---|
cancel, getQuotedPrintable, handleCharset, handleEncoding, handleLanguage, handleMultiplePropertyValue, handlePropertyValue, handleValue, parse, parse, parse, parseItem, parseItems, parseVCardFile, separateLineAndHandleGroup, showDebugInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCardParser_V30()
Method Detail |
---|
protected java.lang.String getVersion()
getVersion
in class VCardParser_V21
protected boolean isValidPropertyName(java.lang.String propertyName)
isValidPropertyName
in class VCardParser_V21
protected boolean isValidEncoding(java.lang.String encoding)
isValidEncoding
in class VCardParser_V21
protected java.lang.String getLine() throws java.io.IOException
getLine
in class VCardParser_V21
java.io.IOException
protected java.lang.String getNonEmptyLine() throws java.io.IOException, VCardException
getNonEmptyLine
in class VCardParser_V21
java.io.IOException
VCardException
- when the stream reached end of lineprotected boolean readBeginVCard(boolean allowGarbage) throws java.io.IOException, VCardException
readBeginVCard
in class VCardParser_V21
java.io.IOException
VCardException
protected void readEndVCard(boolean useCache, boolean allowGarbage) throws java.io.IOException, VCardException
VCardParser_V21
readEndVCard
in class VCardParser_V21
useCache
- When true, line is obtained from mPreviousline. Otherwise, getLine()
is used.allowGarbage
- When true, ignore non "END:VCARD" line.
java.io.IOException
VCardException
protected void handleParams(java.lang.String params) throws VCardException
handleParams
in class VCardParser_V21
VCardException
protected void handleAnyParam(java.lang.String paramName, java.lang.String paramValue)
VCardParser_V21
handleAnyParam
in class VCardParser_V21
protected void handleType(java.lang.String ptypevalues)
handleType
in class VCardParser_V21
protected void handleAgent(java.lang.String propertyValue) throws VCardException
VCardParser_V21
handleAgent
in class VCardParser_V21
VCardException
protected java.lang.String getBase64(java.lang.String firstString) throws java.io.IOException, VCardException
getBase64
in class VCardParser_V21
java.io.IOException
VCardException
protected java.lang.String maybeUnescapeText(java.lang.String text)
maybeUnescapeText
in class VCardParser_V21
protected java.lang.String maybeUnescape(char ch)
VCardParser_V21
maybeUnescape
in class VCardParser_V21
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |