|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.Ezvcard.ParserChainJsonReader
public static class Ezvcard.ParserChainJsonReader
Chainer class for parsing JSON-encoded vCards (jCard).
Ezvcard.parseJson(InputStream)
,
Ezvcard.parseJson(File)
,
Ezvcard.parseJson(Reader)
Method Summary | |
---|---|
List<VCard> |
all()
Reads all vCards from the stream. |
VCard |
first()
Reads the first vCard from the stream. |
Ezvcard.ParserChainJsonReader |
register(VCardPropertyScribe<? extends VCardProperty> scribe)
Registers a property scribe. |
Ezvcard.ParserChainJsonReader |
warnings(List<List<String>> warnings)
Provides a list object that any unmarshal warnings will be put into. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Ezvcard.ParserChainJsonReader register(VCardPropertyScribe<? extends VCardProperty> scribe)
scribe
- the scribe
public Ezvcard.ParserChainJsonReader warnings(List<List<String>> warnings)
warnings
- the list object that will be populated with the
warnings of each unmarshalled vCard. Each element of the list is the
list of warnings for one of the unmarshalled vCards. Therefore, the
size of this list will be equal to the number of parsed vCards. If a
vCard does not have any warnings, then its warning list will be
empty.
public VCard first() throws IOException
JCardParseException
- if the jCard syntax is incorrect (the
JSON syntax may be valid, but it is not in the correct jCard format).
JsonParseException
- if the JSON syntax is incorrect
IOException
- if there's an I/O problempublic List<VCard> all() throws IOException
JCardParseException
- if the jCard syntax is incorrect (the
JSON syntax may be valid, but it is not in the correct jCard format).
JsonParseException
- if the JSON syntax is incorrect
IOException
- if there's an I/O problem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |