|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.io.text.FoldingScheme
public class FoldingScheme
Specifies how a vCard should be folded when written to a string.
| Field Summary | |
|---|---|
static FoldingScheme |
MAC_ADDRESS_BOOK
Folds lines at 76 characters (not including CRLF) and uses 2 spaces as indentation. |
static FoldingScheme |
MIME_DIR
Folds lines at 75 characters (not including CRLF) and uses 1 space as indentation. |
static FoldingScheme |
MS_OUTLOOK
Folds lines at 72 characters (not including CRLF) and uses 1 space as indentation. |
| Constructor Summary | |
|---|---|
FoldingScheme(int lineLength,
String indent)
Creates a folding scheme. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FoldingScheme MIME_DIR
public static final FoldingScheme MS_OUTLOOK
public static final FoldingScheme MAC_ADDRESS_BOOK
| Constructor Detail |
|---|
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 indentation
IllegalArgumentException - if the line length is <= 0, or if the
line length is less than the length of the indentation string| Method Detail |
|---|
public int getLineLength()
public String getIndent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||