AZS

com.a2zss.ISO8583
Class Message

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by com.a2zss.ISO8583.Message
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map
Direct Known Subclasses:
Request, Response

public class Message
extends java.util.Hashtable
implements java.io.Serializable

This class can be used to contruct ISO8583 messages or to analyze and acess data in parsed ISO8583 messages.

See Also:
Serialized Form

Constructor Summary
Message()
          creates an empty Message object
Message(Message msg)
          creates a Message object from an Message that contains ISOFields
 
Method Summary
 java.lang.Object getISOField(int bit)
           
 java.lang.String getISOString(int bit)
           
 java.lang.String getISOString(int bit, boolean allownull)
           
 void putISOField(java.lang.Object obj)
          to add a ISOField object to Message
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Message

public Message()
creates an empty Message object


Message

public Message(Message msg)
creates a Message object from an Message that contains ISOFields

Parameters:
msg -
Method Detail

getISOField

public final java.lang.Object getISOField(int bit)
Parameters:
bit - - the ISO8583 bit number / field name constant
Returns:
a ISOField object in Message matching the bit

getISOString

public final java.lang.String getISOString(int bit)
Parameters:
bit - - the ISO8583 bit number / field name constant
Returns:
a ISOField object converted to String in Message matching the bit

getISOString

public final java.lang.String getISOString(int bit,
                                           boolean allownull)
Parameters:
bit - - the ISO8583 bit number / field name constant
allownull - - if true the null velues are allowed to be returned if false then if there is no such field or contents for this field will be returned as an empty String "".
Returns:
a ISOField object in Message matching the bit

putISOField

public final void putISOField(java.lang.Object obj)
to add a ISOField object to Message

Parameters:
obj - - an ISOFiled or Bitmap object

AZS

Copyright © 2002-2010 AZS Services Ltd. All Rights Reserved.