Closeable
, Flushable
, Appendable
, AutoCloseable
public class FoldingWriter extends FilterWriter
$Id$ [Apr 6, 2004]A writer that performs iCalendar folding as it writes.
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..
|
out
Constructor | Description |
---|---|
FoldingWriter(Writer writer) |
|
FoldingWriter(Writer writer,
int foldLength) |
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) |
close, flush
public static final int REDUCED_FOLD_LENGTH
public static final int MAX_FOLD_LENGTH
public FoldingWriter(Writer writer, int foldLength)
writer
- a writer to write output tofoldLength
- the maximum line lengthpublic FoldingWriter(Writer writer)
writer
- a writer to write output topublic final void write(int c) throws IOException
write
in class FilterWriter
IOException
public final void write(char[] buffer, int offset, int length) throws IOException
write
in class FilterWriter
IOException
public final void write(String str, int off, int len) throws IOException
write
in class FilterWriter
IOException