public class FoldingWriter
extends java.io.FilterWriter
$Id$ [Apr 6, 2004]A writer that performs iCalendar folding as it writes.
| Modifier and Type | Field and 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..
|
| Constructor and Description |
|---|
FoldingWriter(java.io.Writer writer) |
FoldingWriter(java.io.Writer writer,
int foldLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] buffer,
int offset,
int length) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
public static final int REDUCED_FOLD_LENGTH
public static final int MAX_FOLD_LENGTH
public FoldingWriter(java.io.Writer writer,
int foldLength)
writer - a writer to write output tofoldLength - the maximum line lengthpublic FoldingWriter(java.io.Writer writer)
writer - a writer to write output topublic final void write(int c)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionpublic final void write(char[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionpublic final void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOException