com.ibm.db2.tools.repl.publication
Class Utils
java.lang.Object
|
+--com.ibm.db2.tools.repl.publication.Utils
- public class Utils
- extends java.lang.Object
This class contains a bunch of static methods to help format an object as a readable
textual string.
Field Summary |
protected static java.lang.String |
indent
|
protected static int |
level
|
protected static java.lang.String |
nl
|
protected static java.lang.String |
nlIndent
|
Constructor Summary |
Utils()
|
Method Summary |
static void |
fieldsAsString(java.lang.Object obj,
java.lang.StringBuffer sb)
Format the object as a nice string. |
static java.lang.String |
formatAsString(java.lang.Object obj)
Format the object as a nice string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indent
protected static final java.lang.String indent
- See Also:
- Constant Field Values
nl
protected static final java.lang.String nl
- See Also:
- Constant Field Values
nlIndent
protected static final java.lang.String nlIndent
- See Also:
- Constant Field Values
level
protected static int level
Utils
public Utils()
formatAsString
public static java.lang.String formatAsString(java.lang.Object obj)
- Format the object as a nice string.
- Parameters:
obj
- The object to format.
- Returns:
- String The textual representation.
fieldsAsString
public static void fieldsAsString(java.lang.Object obj,
java.lang.StringBuffer sb)
- Format the object as a nice string.
- Parameters:
obj
- The object to format.sb
- Place the output into this StringBuffer.