org.apache.qpid.util
Class PrettyPrintingUtils

java.lang.Object
  extended by org.apache.qpid.util.PrettyPrintingUtils

public class PrettyPrintingUtils
extends Object

Contains pretty printing convenienve methods for producing formatted logging output, mostly for debugging purposes.

CRC Card
Responsibilities Collaborations

Todo:
Drop this. There are already array pretty printing methods it java.utils.Arrays.

Constructor Summary
PrettyPrintingUtils()
           
 
Method Summary
static String printArray(int[] array)
          Pretty prints an array of ints as a string.
static String printArray(String[] array)
          Pretty prints an array of strings as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrintingUtils

public PrettyPrintingUtils()
Method Detail

printArray

public static String printArray(int[] array)
Pretty prints an array of ints as a string.

Parameters:
array - The array to pretty print.
Returns:
The pretty printed string.

printArray

public static String printArray(String[] array)
Pretty prints an array of strings as a string.

Parameters:
array - The array to pretty print.
Returns:
The pretty printed string.


Licensed to the Apache Software Foundation