Class XcalCalendarParser

  • All Implemented Interfaces:
    net.fortuna.ical4j.data.CalendarParser

    public class XcalCalendarParser
    extends Object
    implements net.fortuna.ical4j.data.CalendarParser
    Parses and builds an iCalendar model from an xml input stream. Note that this class is not thread-safe.
    Version:
    1.0
    Author:
    Mike Douglass Created: Sept 8, 2010
    • Constructor Detail

      • XcalCalendarParser

        public XcalCalendarParser()
    • Method Detail

      • parse

        public void parse​(InputStream in,
                          net.fortuna.ical4j.data.ContentHandler handler)
                   throws net.fortuna.ical4j.data.ParserException
        Specified by:
        parse in interface net.fortuna.ical4j.data.CalendarParser
        Throws:
        net.fortuna.ical4j.data.ParserException
      • parse

        public void parse​(Reader in,
                          net.fortuna.ical4j.data.ContentHandler handler)
                   throws net.fortuna.ical4j.data.ParserException
        Specified by:
        parse in interface net.fortuna.ical4j.data.CalendarParser
        Throws:
        net.fortuna.ical4j.data.ParserException
      • getChildren

        protected Collection<Element> getChildren​(Node nd)
                                           throws net.fortuna.ical4j.data.ParserException
        Throws:
        net.fortuna.ical4j.data.ParserException
      • getChildrenArray

        protected Element[] getChildrenArray​(Node nd)
                                      throws net.fortuna.ical4j.data.ParserException
        Throws:
        net.fortuna.ical4j.data.ParserException
      • getOnlyChild

        protected Element getOnlyChild​(Node nd)
                                throws net.fortuna.ical4j.data.ParserException
        Throws:
        net.fortuna.ical4j.data.ParserException
      • getElementContent

        protected String getElementContent​(Element el)
                                    throws net.fortuna.ical4j.data.ParserException
        Throws:
        net.fortuna.ical4j.data.ParserException
      • isEmpty

        protected boolean isEmpty​(Element el)
                           throws net.fortuna.ical4j.data.ParserException
        Throws:
        net.fortuna.ical4j.data.ParserException