Websphere MQ Everyplace

com.ibm.mqe.trace
Class MQeTraceFromBinary

java.lang.Object
  |
  +--com.ibm.mqe.trace.MQeTraceFromBinary
Direct Known Subclasses:
MQeTraceFromBinaryFile

public class MQeTraceFromBinary
extends java.lang.Object

A tool to decode binary trace and render it into an English readable form.

Use decodeBinary() to decode binary data to readable with the following parameters:

For example:

 MQeTraceFromBinary.decodeBinary(new ByteArrayInputStream (data),
                                 System.out,
                                 new MQeTraceRenderer());
 

Errors will be directed to the System.err stream.

Designed to be extended by other TraceFromBinary classes to make use of various LABEL fields and logError()


Constructor Summary
MQeTraceFromBinary()
           
 
Method Summary
static boolean decodeBinary(java.io.ByteArrayInputStream in, java.io.PrintStream outStream, MQeTraceRenderer renderer)
          Decodes a whole binary data into readable format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MQeTraceFromBinary

public MQeTraceFromBinary()
Method Detail

decodeBinary

public static boolean decodeBinary(java.io.ByteArrayInputStream in,
                                   java.io.PrintStream outStream,
                                   MQeTraceRenderer renderer)
Decodes a whole binary data into readable format.

Parameters:
in - the byte array to be decoded
outStream - the PrintStream to print the output to
renderer - the TraceRenderer to use when rendering the trace
Returns:
true, if the decode of the trace was performed without error, false otherwise.

Websphere MQ Everyplace