|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.io.json.JCalRawReader
public class JCalRawReader
Parses an iCalendar JSON data stream (jCal).
| Nested Class Summary | |
|---|---|
static interface |
JCalRawReader.JCalDataStreamListener
Handles the iCalendar data as it is read off the data stream. |
| Constructor Summary | |
|---|---|
JCalRawReader(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(JCalRawReader.JCalDataStreamListener listener)
Reads the next iCalendar object from the jCal data stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCalRawReader(Reader reader)
reader - the reader to the data stream| Method Detail |
|---|
public int getLineNum()
public void readNext(JCalRawReader.JCalDataStreamListener listener)
throws IOException
listener - handles the iCalendar data as it is read off the wire
JCalParseException - if the jCal syntax is incorrect (the JSON
syntax may be valid, but it is not in the correct jCal 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 | |||||||||