IQ recording file playback partial checkin.

NOTE: only the gui components and settings handling have been implemented.  Actual recording playback is not yet implemented.

Partial checkin of initial P25 decoder development.  

NOTE: P25 decoder is not yet functional.
This commit is contained in:
dennis.sheirer
2014-08-02 15:16:12 +00:00
parent 35a2cebe03
commit 44faeb9351
38 changed files with 1416 additions and 39 deletions

View File

@@ -86,6 +86,32 @@ public class Log
System.out.println( ( label == null ? "" : label + ": " ) + msg );
}
private static void log( String msg, String label, Throwable throwable )
{
StringBuilder sb = new StringBuilder();
if( msg != null )
{
sb.append( msg );
sb.append( "\n" );
}
sb.append( "---- STACK TRACE ----\n" );
sb.append( "\tERROR: " );
sb.append( throwable.getLocalizedMessage() + "\n" );
StackTraceElement[] stack = throwable.getStackTrace();
for( StackTraceElement element: stack )
{
sb.append( "\t" );
sb.append( element.toString() );
sb.append( "\n" );
}
log( sb.toString(), label );
}
public static void header( String name )
{
StringBuilder sb = new StringBuilder();
@@ -138,11 +164,21 @@ public class Log
log( msg, "ERROR" );
}
public static void error( String msg, Throwable throwable )
{
log( msg, "ERROR", throwable );
}
public static void debug( String msg )
{
log( msg, "DEBUG" );
}
public static void debug( String msg, Throwable throwable )
{
log( msg, "DEBUG", throwable );
}
/**
* Initializes logging to the specified filename
*/