Package net.fortuna.ical4j.data
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 Summary
Fields Modifier and Type Field Description static int
MAX_FOLD_LENGTH
Lines of text SHOULD NOT be longer than 75 octets, excluding the line break.static int
REDUCED_FOLD_LENGTH
reduced to 73 to be consistent with Apple iCal..-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description FoldingWriter(Writer writer)
FoldingWriter(Writer writer, int foldLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(char[] buffer, int offset, int length)
void
write(int c)
void
write(String str, int off, int len)
-
Methods inherited from class java.io.FilterWriter
close, flush
-
-
-
-
Field Detail
-
REDUCED_FOLD_LENGTH
public static final int REDUCED_FOLD_LENGTH
reduced to 73 to be consistent with Apple iCal..- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Method Detail
-
write
public final void write(int c) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public final void write(char[] buffer, int offset, int length) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public final void write(String str, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
-