|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectimx.lib.varia.StringUtil
public class StringUtil
Util contains some support methods that have no other place to go
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
connectLines(java.lang.String strA,
java.lang.String strB)
connects the lines of strB to strA, so that strB will print to the right of strA, if strA consists of multiple lines. |
static java.lang.String |
fieldTrimLeft(java.lang.String msg,
int fieldSize)
adds empty spaces to the right of msg, so that the total size is fieldSize |
static java.lang.String |
fieldTrimRight(java.lang.String msg,
int fieldSize)
adds empty spaces to the left of msg, so that the total size is fieldSize |
static java.lang.String |
getClassName(java.lang.Object obj)
Returns the last part of the class name of an object. |
static java.lang.String |
getClassName(java.lang.String fullClassName)
Returns the last part of the full qualified class name. |
static int |
getMaxLineWidth(java.lang.String str)
returns the length of longest line in str |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static java.lang.String fieldTrimRight(java.lang.String msg,
int fieldSize)
public static java.lang.String fieldTrimLeft(java.lang.String msg,
int fieldSize)
public static java.lang.String connectLines(java.lang.String strA,
java.lang.String strB)
public static int getMaxLineWidth(java.lang.String str)
public static java.lang.String getClassName(java.lang.Object obj)
public static java.lang.String getClassName(java.lang.String fullClassName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||