at.knowcenter.wag.egov.egiz.tools
Class DebugHelper

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.tools.DebugHelper

public final class DebugHelper
extends Object

Contains useful helper methods for debugging.

Author:
wprinz

Field Summary
static File debug_dir
          The directory under which the debug files are to be stored.
static boolean debug_to_file
          Tells, if Strings should be debugged to a file.
 
Constructor Summary
DebugHelper()
           
 
Method Summary
static void debugStringToFile(String str, String file_name)
          Writes the given String to a file with the given file name in UTF-8 encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug_to_file

public static boolean debug_to_file
Tells, if Strings should be debugged to a file.

If set to false, the corresponding methods will simply do nothing.


debug_dir

public static File debug_dir
The directory under which the debug files are to be stored.

Constructor Detail

DebugHelper

public DebugHelper()
Method Detail

debugStringToFile

public static void debugStringToFile(String str,
                                     String file_name)
Writes the given String to a file with the given file name in UTF-8 encoding.

Parameters:
str - The String to be written.
file_name - The file the String will be written to.


Copyright © 2006-2010. All Rights Reserved.