public class TextWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONTINUATION |
static boolean |
DEFAULT_STRICT_MODE |
static int |
DEFAULT_WIDTH |
| Constructor and Description |
|---|
TextWrapper()
Creates a text wrapper with the default options.
|
TextWrapper(int width)
Creates a text wrapper with a custom line width.
|
TextWrapper(int width,
String continuation)
Creates a text wrapper with a custom line width and a custom continuation character.
|
TextWrapper(int width,
String continuation,
boolean strict)
Creates a text wrapper with a custom line width, a custom continuation character and a
specified strict mode.
|
public static final String DEFAULT_CONTINUATION
public static final int DEFAULT_WIDTH
public static final boolean DEFAULT_STRICT_MODE
public TextWrapper()
public TextWrapper(int width)
width - the line width.public TextWrapper(int width,
String continuation)
width - the line width.continuation - the continuation character.public TextWrapper(int width,
String continuation,
boolean strict)
width - the line width.continuation - the continuation character.strict - if true, line width is strictly enforced, if false, single words are
allowed to go beyond.Copyright © 2013-2018–2019 SeedStack. All rights reserved.