com.gargoylesoftware.base.trace

Class TraceUtil

public class TraceUtil extends Object

A collection of utility methods dealing with tracing.

Version: $Revision: 1.3 $

Author: Mike Bowler

Field Summary
static StringLINE_SEPARATOR
Constructor Summary
TraceUtil()
Method Summary
static voidtrace(TraceChannel channel, Collection collection)
Dump a collection to the specified TraceChannel.
static voidtrace(TraceChannel channel, Map collection)
Dump a map to the specified TraceChannel.
static voidtrace(TraceChannel channel, Object[] array)
Dump an object array to the specified TraceChannel.

Field Detail

LINE_SEPARATOR

private static final String LINE_SEPARATOR

Constructor Detail

TraceUtil

private TraceUtil()

Method Detail

trace

public static void trace(TraceChannel channel, Collection collection)
Dump a collection to the specified TraceChannel.

Parameters: channel The channel to write the information to. collection The data to write.

trace

public static void trace(TraceChannel channel, Map collection)
Dump a map to the specified TraceChannel.

Parameters: channel The channel to write the information to. collection The data to write.

trace

public static void trace(TraceChannel channel, Object[] array)
Dump an object array to the specified TraceChannel.

Parameters: channel The channel to write the information to. array The data to write.