com.objsys.asn1j.runtime
Class Diag

java.lang.Object
  extended by com.objsys.asn1j.runtime.Diag

public class Diag
extends java.lang.Object

This class is used for printing diagnostic messages for debugging the run-time components. It allows messages to be easily switched on and off.


Method Summary
static void hexDump(byte[] bytes)
           
static void hexDump(byte[] bytes, int traceLevel)
           
static void hexDump(java.io.InputStream in, java.io.PrintStream out)
           
static Diag instance()
           
 boolean isEnabled()
           
 boolean isEnabled(int traceLevel)
           
 void println(java.lang.String s)
           
 void println(java.lang.String s, int traceLevel)
           
static void prtln(byte[] b, int offset, int nbytes)
           
static void prtln(byte[] b, int offset, int nbytes, int tl)
           
static void prtln(java.lang.String s)
           
static void prtln(java.lang.String s, int traceLevel)
           
 boolean setEnabled(boolean value)
           
 void setPrintStream(java.io.PrintStream ps)
           
static int setTraceLevel(int level)
           
 int setTraceLevel2(int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEnabled

public boolean isEnabled()

isEnabled

public boolean isEnabled(int traceLevel)

hexDump

public static void hexDump(byte[] bytes)

hexDump

public static void hexDump(byte[] bytes,
                           int traceLevel)

hexDump

public static void hexDump(java.io.InputStream in,
                           java.io.PrintStream out)

prtln

public static void prtln(java.lang.String s)

prtln

public static void prtln(java.lang.String s,
                         int traceLevel)

prtln

public static void prtln(byte[] b,
                         int offset,
                         int nbytes,
                         int tl)

prtln

public static void prtln(byte[] b,
                         int offset,
                         int nbytes)

println

public void println(java.lang.String s)

println

public void println(java.lang.String s,
                    int traceLevel)

setEnabled

public boolean setEnabled(boolean value)

setPrintStream

public void setPrintStream(java.io.PrintStream ps)

setTraceLevel2

public int setTraceLevel2(int level)

setTraceLevel

public static int setTraceLevel(int level)

instance

public static Diag instance()