jodd.util
Class TextUtil

java.lang.Object
  extended by jodd.util.TextUtil

public class TextUtil
extends java.lang.Object

Text is a string divided in lines.

See Also:
StringUtil

Constructor Summary
TextUtil()
           
 
Method Summary
static java.lang.String convertTabsToSpaces(java.lang.String line, int tabWidth)
          Converts all tabs on a line to spaces according to the provided tab width.
static java.lang.String formatParagraph(java.lang.String src, int len, boolean breakOnWs)
          Formats provided string as paragraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextUtil

public TextUtil()
Method Detail

formatParagraph

public static java.lang.String formatParagraph(java.lang.String src,
                                               int len,
                                               boolean breakOnWs)
Formats provided string as paragraph.


convertTabsToSpaces

public static java.lang.String convertTabsToSpaces(java.lang.String line,
                                                   int tabWidth)
Converts all tabs on a line to spaces according to the provided tab width. Note that this methods works with lines only!



Copyright © 2003-2012 Jodd Team