public List < ICalendar > all ( ) throws IOException { StreamReader reader = constructReader ( ) ; if ( index != null ) { reader . setScribeIndex ( index ) ; } try { List < ICalendar > icals = new ArrayList < ICalendar > ( ) ; ICalendar ical ; while ( ( ical = reader . readNext ( ) ) != null ) { if ( warnings != null ) { warnings . add ( reader . getWarnings ( ) ) ; } icals . add ( ical ) ; } return icals ; } finally { if ( closeWhenDone ( ) ) { reader . close ( ) ; } } }
Reads all iCalendar objects from the stream .