|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface VCardRawReader.VCardDataStreamListener
Handles the vCard data as it is read off the data stream. Each one of
this interface's methods may throw a VCardRawReader.StopReadingException
at any
time to force the parser to stop reading from the data stream. This will
cause the reader to return from the VCardRawReader.start(ezvcard.io.text.VCardRawReader.VCardDataStreamListener)
method.
To continue reading from the data stream, simply call the
VCardRawReader.start(ezvcard.io.text.VCardRawReader.VCardDataStreamListener)
method again.
Method Summary | |
---|---|
void |
beginComponent(String name)
Called when a component begins (when a "BEGIN:NAME" property is reached). |
void |
endComponent(String name)
Called when a component ends (when a "END:NAME" property is reached). |
void |
invalidLine(String line)
Called when a line cannot be parsed. |
void |
invalidVersion(String version)
Called when an invalid VERSION property is encountered. |
void |
readProperty(String group,
String name,
VCardParameters parameters,
String value)
Called when a property is read. |
void |
readVersion(VCardVersion version)
Called when the vCard's VERSION property is read. |
Method Detail |
---|
void beginComponent(String name)
name
- the component name (e.g. "VCARD")
VCardRawReader.StopReadingException
- to force the reader to stop reading from
the data streamvoid readProperty(String group, String name, VCardParameters parameters, String value)
group
- the group name or null if no group was definedname
- the property name (e.g. "VERSION")parameters
- the parametersvalue
- the property value
VCardRawReader.StopReadingException
- to force the reader to stop reading from
the data streamvoid readVersion(VCardVersion version)
version
- the version that was readvoid endComponent(String name)
name
- the component name (e.g. "VCARD")
VCardRawReader.StopReadingException
- to force the reader to stop reading from
the data streamvoid invalidLine(String line)
line
- the unparseable line
VCardRawReader.StopReadingException
- to force the reader to stop reading from
the data streamvoid invalidVersion(String version)
version
- the invalid version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |