public class FoldingScheme extends Object
| Modifier and Type | Field and Description |
|---|---|
static FoldingScheme |
DEFAULT
Folds lines according to RFC specification (75 characters not including
CRLF, with 1 space as indentation).
|
| Constructor and Description |
|---|
FoldingScheme(int lineLength,
String indent) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIndent()
Gets the string that is used to indent the folded line.
|
int |
getLineLength()
Gets the maximum number of characters that can exist on a line before
needing to be folded (not including the newline).
|
public static final FoldingScheme DEFAULT
public FoldingScheme(int lineLength, String indent)
lineLength - the maximum number of characters that can exist on a
line before needing to be folded (not including the newline)indent - the string to use for indentationIllegalArgumentException - if the line length is <= 0, or if the
line length is less than the length of the indentation stringpublic int getLineLength()
Copyright © 2013-2014 Michael Angstadt. All Rights Reserved.