Class DumpFileUtils


  • public final class DumpFileUtils
    extends java.lang.Object
    Dumps a text or exception in dump file. Each call logs a date when it was written to the dump file.
    Since:
    2.20
    Author:
    Tibor Digana (tibor17)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void dumpException​(java.lang.Throwable t, java.io.File dumpFile)  
      static void dumpException​(java.lang.Throwable t, java.lang.String msg, java.io.File dumpFile)  
      static void dumpText​(java.lang.String msg, java.io.File dumpFile)  
      static java.io.File newDumpFile​(java.lang.String dumpFileName, ReporterConfiguration configuration)
      New dump file.
      static java.lang.String newFormattedDateFileName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newDumpFile

        public static java.io.File newDumpFile​(java.lang.String dumpFileName,
                                               ReporterConfiguration configuration)
        New dump file. Synchronized object appears in main memory and perfectly visible in other threads.
        Parameters:
        dumpFileName - dump file name
        configuration - only report directory
      • dumpException

        public static void dumpException​(java.lang.Throwable t,
                                         java.io.File dumpFile)
      • dumpException

        public static void dumpException​(java.lang.Throwable t,
                                         java.lang.String msg,
                                         java.io.File dumpFile)
      • dumpText

        public static void dumpText​(java.lang.String msg,
                                    java.io.File dumpFile)
      • newFormattedDateFileName

        public static java.lang.String newFormattedDateFileName()