com.binaryfantasy.murq.util
Class DiagnosticUtils

java.lang.Object
  extended by com.binaryfantasy.murq.util.DiagnosticUtils

public class DiagnosticUtils
extends Object

Provides methods for creating human readable versions of Murq's internal data structures for diagnostic and logging use.

Author:
Bill Weiss

Constructor Summary
DiagnosticUtils()
           
 
Method Summary
static String toString(org.apache.lucene.store.Directory dir)
          Returns a text rendering of the contents of the specified Lucene Directory.
static String toString(ISource source)
          Returns a text rendering of the contents of the specified ISource.
static String toString(ISource source, String key)
          Returns a text rendering of the specified content in the ISource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticUtils

public DiagnosticUtils()
Method Detail

toString

public static String toString(ISource source)
Returns a text rendering of the contents of the specified ISource.

Parameters:
source - the ISource to be rendered.
Returns:
a text rendering of the contents of the specified ISource.

toString

public static String toString(ISource source,
                              String key)
Returns a text rendering of the specified content in the ISource.

Parameters:
source - the ISource containing the content.
key - the key associated with the content to be rendered.
Returns:
a text rendering of the specified content in the ISource.

toString

public static String toString(org.apache.lucene.store.Directory dir)
Returns a text rendering of the contents of the specified Lucene Directory.

Parameters:
dir - the Lucene Directory to be rendered.
Returns:
a text rendering of the contents of the specified Lucene Directory.


Copyright (c) 2000-2006, BinaryFantasy.com