com.syncbuilder.util
Class Util

java.lang.Object
  |
  +--com.syncbuilder.util.Util

public final class Util
extends java.lang.Object

A collection of helper methods, mostly for debugging output.


Method Summary
static java.lang.String hexPrint(byte[] b)
           
static java.lang.String hexPrint(byte[] b, int len)
           
static java.lang.String justifyLeft(java.lang.String s, int width)
          Left-justify an arbitrary String within a field of the specified width
static java.lang.String justifyRight(java.lang.String s, int width)
          Right-justify an arbitrary String within a field of the specified width
static java.lang.String prettyPrint(byte[] b)
           
static java.lang.String prettyPrint(java.lang.Object o)
           
static java.lang.String readLine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hexPrint

public static java.lang.String hexPrint(byte[] b)

hexPrint

public static java.lang.String hexPrint(byte[] b,
                                        int len)

prettyPrint

public static java.lang.String prettyPrint(byte[] b)

prettyPrint

public static java.lang.String prettyPrint(java.lang.Object o)

justifyLeft

public static java.lang.String justifyLeft(java.lang.String s,
                                           int width)
Left-justify an arbitrary String within a field of the specified width

justifyRight

public static java.lang.String justifyRight(java.lang.String s,
                                            int width)
Right-justify an arbitrary String within a field of the specified width

readLine

public static java.lang.String readLine()
                                 throws java.io.IOException


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.