adaptj.util.text
Class TextWidthFormatter

java.lang.Object
  |
  +--adaptj.util.text.TextWidthFormatter

public class TextWidthFormatter
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_DELIMS
           
static int DEFAULT_WIDTH
           
static boolean EXCEPTION_ON_OVERFLOW
           
 
Constructor Summary
TextWidthFormatter()
           
TextWidthFormatter(int maxWidth)
           
TextWidthFormatter(int maxWidth, java.lang.String delims)
           
TextWidthFormatter(int maxWidth, java.lang.String delims, boolean exceptionOnOverflow)
           
TextWidthFormatter(int maxWidth, java.lang.String delims, boolean exceptionOnOverflow, java.lang.String indentString)
           
 
Method Summary
 Strings format(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
See Also:
Constant Field Values

DEFAULT_DELIMS

public static final java.lang.String DEFAULT_DELIMS
See Also:
Constant Field Values

EXCEPTION_ON_OVERFLOW

public static final boolean EXCEPTION_ON_OVERFLOW
See Also:
Constant Field Values
Constructor Detail

TextWidthFormatter

public TextWidthFormatter()

TextWidthFormatter

public TextWidthFormatter(int maxWidth)

TextWidthFormatter

public TextWidthFormatter(int maxWidth,
                          java.lang.String delims)

TextWidthFormatter

public TextWidthFormatter(int maxWidth,
                          java.lang.String delims,
                          boolean exceptionOnOverflow)

TextWidthFormatter

public TextWidthFormatter(int maxWidth,
                          java.lang.String delims,
                          boolean exceptionOnOverflow,
                          java.lang.String indentString)
Method Detail

format

public Strings format(java.lang.String s)