|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.io.text.ICalReader
public class ICalReader
Parses ICalendar objects from an iCalendar data stream.
Reader reader = ...
ICalReader icalReader = new ICalReader(reader);
ICalendar ical;
while ((ical = icalReader.readNext()) != null){
...
}
icalReader.close();
| Constructor Summary | |
|---|---|
ICalReader(File file)
Creates a reader that parses iCalendar objects from a file. |
|
ICalReader(InputStream in)
Creates a reader that parses iCalendar objects from an input stream. |
|
ICalReader(Reader reader)
Creates a reader that parses iCalendar objects from a reader. |
|
ICalReader(String string)
Creates a reader that parses iCalendar objects from a string. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying Reader object. |
List<String> |
getWarnings()
Gets the warnings from the last iCalendar object that was unmarshalled. |
boolean |
isCaretDecodingEnabled()
Gets whether the reader will decode parameter values that use circumflex accent encoding (enabled by default). |
ICalendar |
readNext()
Reads the next iCalendar object. |
void |
registerMarshaller(ICalComponentMarshaller<? extends ICalComponent> marshaller)
Registers a marshaller for an experimental component. |
void |
registerMarshaller(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
Registers a marshaller for an experimental property. |
void |
setCaretDecodingEnabled(boolean enable)
Sets whether the reader will decode parameter values that use circumflex accent encoding (enabled by default). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICalReader(String string)
string - the stringpublic ICalReader(InputStream in)
in - the input stream
public ICalReader(File file)
throws FileNotFoundException
file - the file
FileNotFoundException - if the file doesn't existpublic ICalReader(Reader reader)
reader - the reader| Method Detail |
|---|
public boolean isCaretDecodingEnabled()
ICalRawReader.isCaretDecodingEnabled()public void setCaretDecodingEnabled(boolean enable)
enable - true to use circumflex accent decoding, false not toICalRawReader.setCaretDecodingEnabled(boolean)public void registerMarshaller(ICalPropertyMarshaller<? extends ICalProperty> marshaller)
marshaller - the marshaller to registerpublic void registerMarshaller(ICalComponentMarshaller<? extends ICalComponent> marshaller)
marshaller - the marshaller to registerpublic List<String> getWarnings()
public ICalendar readNext()
throws IOException
IOException - if there's a problem reading from the stream
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 | |||||||||