Methods Summary |
---|
protected java.lang.String | getBinaryEncodingName()Returns name of encoding.
return "BASE64";
|
protected java.lang.String | getCategoryProperty()Returns the property category.
return PROPERTY_CATEGORY;
|
protected java.lang.String | getClassProperty()Returns class property.
return PROPERTY_CLASS;
|
protected java.lang.String | getVersion()Returns VCard version.
return "2.1";
|
protected int | parseAttributes(java.lang.String[] attributes)Gets the binary value describing all flags in a vCard line.
int code = 0;
for (int i = 0; i < attributes.length; i++) {
code |= VCardSupport.getAttributeCode(attributes[i], 0);
}
return code;
|
protected void | writeAttributes(java.io.Writer w, int attributes)Writes the attributes for a field.
for (int i = 0; i < 32; i++) {
long mask = 1l << i;
if ((attributes & mask) != 0) {
String attributeLabel =
VCardSupport.getAttributeLabel((int) mask);
if (attributeLabel != null) {
w.write(';");
w.write(attributeLabel);
}
}
}
|