org.mule.providers.dq
Class DQMessageUtils

java.lang.Object
  extended byorg.mule.providers.dq.DQMessageUtils

public final class DQMessageUtils
extends Object

DQMessageUtils utility class for DQMessage


Field Summary
static String RECORD_DESCRIPTOR_KEY
           
 
Method Summary
static DQMessage getDQMessage(byte[] data, RecordFormat format)
          Returns a DQMessage corresponding to the byte array and the record format
static Record getRecord(DQMessage msg, RecordFormat format)
          Returns a Record corresponding to the DQMessage and the record format
static RecordFormat getRecordFormat(String recordDescriptor, AS400 as400)
          Returns the record format described in the record descriptor file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECORD_DESCRIPTOR_KEY

public static final String RECORD_DESCRIPTOR_KEY
See Also:
Constant Field Values
Method Detail

getDQMessage

public static DQMessage getDQMessage(byte[] data,
                                     RecordFormat format)
                              throws Exception
Returns a DQMessage corresponding to the byte array and the record format

Parameters:
data - The data
format - The record format
Returns:
The DQMessage
Throws:
Exception - Error during the data processing

getRecord

public static Record getRecord(DQMessage msg,
                               RecordFormat format)
Returns a Record corresponding to the DQMessage and the record format

Parameters:
msg - The DQMessage
format - The record format
Returns:
The Record

getRecordFormat

public static RecordFormat getRecordFormat(String recordDescriptor,
                                           AS400 as400)
                                    throws Exception
Returns the record format described in the record descriptor file.

Parameters:
recordDescriptor - The record descriptor filename
as400 - The as400
Returns:
The RecordFormat
Throws:
Exception - Error during the record format parsing


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.