Class FoldingWriter

java.lang.Object
java.io.Writer
java.io.FilterWriter
net.fortuna.ical4j.data.FoldingWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class FoldingWriter extends FilterWriter
 $Id$ [Apr 6, 2004]
 

A writer that performs iCalendar folding as it writes.

  • Field Details

    • REDUCED_FOLD_LENGTH

      public static final int REDUCED_FOLD_LENGTH
      reduced to 73 to be consistent with Apple iCal..
      See Also:
    • MAX_FOLD_LENGTH

      public static final int MAX_FOLD_LENGTH
      Lines of text SHOULD NOT be longer than 75 octets, excluding the line break.
      See Also:
  • Constructor Details

    • FoldingWriter

      public FoldingWriter(Writer writer, int foldLength)
      Parameters:
      writer - a writer to write output to
      foldLength - the maximum line length
    • FoldingWriter

      public FoldingWriter(Writer writer)
      Parameters:
      writer - a writer to write output to
  • Method Details