Class UnfoldingReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public class UnfoldingReader
    extends PushbackReader
     $Id$ [06-Apr-2004]
     

    A reader which performs iCalendar unfolding as it reads. Note that unfolding rules may be "relaxed" to allow unfolding of non-conformant *.ics files. By specifying the system property "ical4j.unfolding.relaxed=true" iCalendar files created with Mozilla Calendar/Sunbird may be correctly unfolded.

    To wrap this reader with a BufferedReader you must ensure you specify an identical buffer size to that used in the BufferedReader.

    • Constructor Detail

      • UnfoldingReader

        public UnfoldingReader​(Reader in)
        Creates a new unfolding reader instance. Relaxed unfolding flag is read from system property.
        Parameters:
        in - the reader to unfold from
      • UnfoldingReader

        public UnfoldingReader​(Reader in,
                               int size)
        Parameters:
        in - reader source for data
        size - the buffer size
      • UnfoldingReader

        public UnfoldingReader​(Reader in,
                               boolean relaxed)
        Parameters:
        in - reader source for data
        relaxed - indicates whether relaxed unfolding is enabled
      • UnfoldingReader

        public UnfoldingReader​(Reader in,
                               int size,
                               boolean relaxed)
        Creates a new unfolding reader instance.
        Parameters:
        in - a reader to read from
        size - the buffer size
        relaxed - specifies whether unfolding is relaxed