Replies: 1 comment
-
Yes, if you want to implement streaming, or even conditional parsing (e.g. skip large attachments), you can implement your own ContentHandler. This is provided to the CalendarParser, to process each line. The File file = new File("calendar.ics");
// unfolding reader handles split lines..
UnfoldingReader calendarReader = new UnfoldingReader(file);
CalendarParser parser = CalendarParserFactory.getInstance().get();
ContentHandler handler = ...
parser.parse(calendarReader, handler); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to do event-based processing so that the entire calendar does not have to be loaded into memory?
Unfortunately, my calendar contains many attachments (GPX recordings of workouts) that make the calendar grow.
On my Android smartphone, this unfortunately leads to an OOM termination.
DAVx⁵ / OOM termination
This method loads the entire calendar into memory.
Is there a method like this?
Beta Was this translation helpful? Give feedback.
All reactions