a_vcard.android.syncml.pim
Class VDataBuilder

java.lang.Object
  extended by a_vcard.android.syncml.pim.VDataBuilder
All Implemented Interfaces:
VBuilder

public class VDataBuilder
extends java.lang.Object
implements VBuilder

Store the parse result to custom datastruct: VNode, PropertyNode Maybe several vcard instance, so use vNodeList to store. VNode: standy by a vcard instance. PropertyNode: standy by a property line of a card.


Field Summary
static java.lang.String DEFAULT_CHARSET
          If there's no other information available, this class uses this charset for encoding byte arrays.
 java.util.List<VNode> vNodeList
          type=VNode
 
Constructor Summary
VDataBuilder()
           
VDataBuilder(java.lang.String charset, boolean strictLineBreakParsing)
           
VDataBuilder(java.lang.String sourceCharset, java.lang.String targetCharset, boolean strictLineBreakParsing)
           
 
Method Summary
 void end()
           
 void endProperty()
           
 void endRecord()
          END:VXX
 java.lang.String getResult()
           
 void propertyGroup(java.lang.String group)
           
 void propertyName(java.lang.String name)
           
 void propertyParamType(java.lang.String type)
           
 void propertyParamValue(java.lang.String value)
           
 void propertyValues(java.util.List<java.lang.String> values)
           
 void start()
           
 void startProperty()
           
 void startRecord(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHARSET

public static java.lang.String DEFAULT_CHARSET
If there's no other information available, this class uses this charset for encoding byte arrays.


vNodeList

public java.util.List<VNode> vNodeList
type=VNode

Constructor Detail

VDataBuilder

public VDataBuilder()

VDataBuilder

public VDataBuilder(java.lang.String charset,
                    boolean strictLineBreakParsing)

VDataBuilder

public VDataBuilder(java.lang.String sourceCharset,
                    java.lang.String targetCharset,
                    boolean strictLineBreakParsing)
Method Detail

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

endRecord

public void endRecord()
Description copied from interface: VBuilder
END:VXX

Specified by:
endRecord in interface VBuilder

startProperty

public void startProperty()
Specified by:
startProperty in interface VBuilder

endProperty

public void endProperty()
Specified by:
endProperty in interface VBuilder

propertyName

public void propertyName(java.lang.String name)
Specified by:
propertyName in interface VBuilder
Parameters:
name - N
N

propertyGroup

public void propertyGroup(java.lang.String group)
Specified by:
propertyGroup in interface VBuilder

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

getResult

public java.lang.String getResult()