|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.io.json.JCardRawReader
public class JCardRawReader
Parses an vCard JSON data stream (jCard).
| Nested Class Summary | |
|---|---|
static interface |
JCardRawReader.JCardDataStreamListener
Handles the vCard data as it is read off the data stream. |
| Constructor Summary | |
|---|---|
JCardRawReader(Reader reader)
Creates a new reader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying Reader object. |
boolean |
eof()
Determines whether the end of the data stream has been reached. |
int |
getLineNum()
Gets the current line number. |
void |
readNext(JCardRawReader.JCardDataStreamListener listener)
Reads the next vCard from the jCard data stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCardRawReader(Reader reader)
reader - the reader to the data stream| Method Detail |
|---|
public int getLineNum()
public void readNext(JCardRawReader.JCardDataStreamListener listener)
throws IOException
listener - handles the vCard data as it is read off the wire
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 is a problem reading from the data streampublic boolean eof()
public void close()
throws IOException
Reader object.
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||