a_vcard.android.syncml.pim.vcard
Class VCardSourceDetector
java.lang.Object
a_vcard.android.syncml.pim.vcard.VCardSourceDetector
- All Implemented Interfaces:
- VBuilder
public class VCardSourceDetector
- extends java.lang.Object
- implements VBuilder
Class which tries to detects the source of the vCard from its properties.
Currently this implementation is very premature.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCardSourceDetector
public VCardSourceDetector()
start
public void start()
- Specified by:
start
in interface VBuilder
end
public void end()
- Specified by:
end
in interface VBuilder
startRecord
public void startRecord(java.lang.String type)
- Specified by:
startRecord
in interface VBuilder
- Parameters:
type
- VXX
BEGIN:VXX
startProperty
public void startProperty()
- Specified by:
startProperty
in interface VBuilder
endProperty
public void endProperty()
- Specified by:
endProperty
in interface VBuilder
endRecord
public void endRecord()
- Description copied from interface:
VBuilder
- END:VXX
- Specified by:
endRecord
in interface VBuilder
propertyGroup
public void propertyGroup(java.lang.String group)
- Specified by:
propertyGroup
in interface VBuilder
propertyName
public void propertyName(java.lang.String name)
- Specified by:
propertyName
in interface VBuilder
- Parameters:
name
- N
N
propertyParamType
public void propertyParamType(java.lang.String type)
- Specified by:
propertyParamType
in interface VBuilder
- Parameters:
type
- LANGUAGE \ ENCODING
;LANGUage= \ ;ENCODING=
propertyParamValue
public void propertyParamValue(java.lang.String value)
- Specified by:
propertyParamValue
in interface VBuilder
- Parameters:
value
- FR-EN \ GBK
FR-EN \ GBK
propertyValues
public void propertyValues(java.util.List<java.lang.String> values)
- Specified by:
propertyValues
in interface VBuilder
getEstimatedCharset
public java.lang.String getEstimatedCharset()
- Return charset String guessed from the source's properties.
This method must be called after parsing target file(s).
- Returns:
- Charset String. Null is returned if guessing the source fails.