$Id$ [Apr 6, 2004]
A writer that performs iCalendar folding as it writes.
| Modifier and Type | Field and Description |
|---|---|
| private static final char[] | |
| private final int | |
| private int | |
| private final Logger | |
| public static final int | MAX_FOLD_LENGTH
Lines of text SHOULD NOT be longer than 75 octets, excluding the line break. |
| public static final int | REDUCED_FOLD_LENGTH
reduced to 73 to be consistent with Apple iCal.. |
| Access | Constructor and Description |
|---|---|
| public | FoldingWriter(final Writer
a writer to write output to writer, final int the maximum line length foldLength)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | write(final int
int specifying a character to be written c)Overrides java. Writes a single character. |
| public final void | write(final char[]
Buffer of characters to be written buffer, final int Offset from which to start reading characters offset, final int Number of characters to be written length)Overrides java. Writes a portion of an array of characters. |
| public final void | write(final String
String to be written str, final int Offset from which to start reading characters off, final int Number of characters to be written len)Overrides java. Writes a portion of a string. |
| FOLD_PATTERN | back to summary |
|---|---|
| private static final char[] FOLD_PATTERN | |
| foldLength | back to summary |
|---|---|
| private final int foldLength | |
| lineLength | back to summary |
|---|---|
| private int lineLength | |
| log | back to summary |
|---|---|
| private final Logger log | |
| MAX_FOLD_LENGTH | back to summary |
|---|---|
| public static final int MAX_FOLD_LENGTH Lines of text SHOULD NOT be longer than 75 octets, excluding the line break. | |
| REDUCED_FOLD_LENGTH | back to summary |
|---|---|
| public static final int REDUCED_FOLD_LENGTH reduced to 73 to be consistent with Apple iCal.. | |
| FoldingWriter | back to summary |
|---|---|
public FoldingWriter(final Writer writer, final int foldLength)
| |
| FoldingWriter | back to summary |
|---|---|
public FoldingWriter(final Writer writer)
| |
| write | back to summary |
|---|---|
| public final void write(final int c) throws IOException Overrides java. Doc from java. Writes a single character.
| |
| write | back to summary |
|---|---|
| public final void write(final char[] buffer, final int offset, final int length) throws IOException Overrides java. Doc from java. Writes a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public final void write(final String str, final int off, final int len) throws IOException Overrides java. Doc from java. Writes a portion of a string.
| |