jPOS 1.6.7 API Documentation

org.jpos.iso
Class FSDISOMsg

java.lang.Object
  extended by org.jpos.iso.ISOComponent
      extended by org.jpos.iso.ISOMsg
          extended by org.jpos.iso.FSDISOMsg
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Loggeable

public class FSDISOMsg
extends ISOMsg
implements java.lang.Cloneable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jpos.iso.ISOMsg
INCOMING, OUTGOING
 
Constructor Summary
FSDISOMsg()
           
FSDISOMsg(FSDMsg fsd)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object clone(int[] fields)
          Partially clone an ISOMsg
 void dump(java.io.PrintStream p, java.lang.String indent)
          dump the message to a PrintStream.
 FSDMsg getFSDMsg()
           
 java.lang.String getMTI()
           
 java.lang.String getString(int fldno)
          Return the String value associated with the given ISOField number
 boolean hasField(int fldno)
          Check if a given field is present
 void merge(ISOMsg m)
          add all fields present on received parameter to this ISOMsg
please note that received fields take precedence over existing ones (simplifying card agent message creation and template handling)
 byte[] pack()
          pack the message with the current packager
 void readExternal(java.io.ObjectInput in)
           
 void setResponseMTI()
          sets an appropiate response MTI.
 int unpack(byte[] b)
          unpack a message
 void unpack(java.io.InputStream in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.jpos.iso.ISOMsg
getBytes, getBytes, getChildren, getComponent, getComponent, getComposite, getDirection, getHeader, getISOHeader, getKey, getMaxField, getPackager, getSource, getString, getValue, getValue, getValue, hasField, hasFields, hasFields, isIncoming, isInner, isOutgoing, isRequest, isResponse, isRetransmission, move, recalcBitMap, set, set, set, set, set, set, setDirection, setFieldNumber, setHeader, setHeader, setMTI, setPackager, setRetransmissionMTI, setSource, setValue, toString, unset, unset, unset
 
Methods inherited from class org.jpos.iso.ISOComponent
getBytes, pack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FSDISOMsg

public FSDISOMsg()

FSDISOMsg

public FSDISOMsg(FSDMsg fsd)
Method Detail

getMTI

public java.lang.String getMTI()
Overrides:
getMTI in class ISOMsg
Returns:
current MTI

pack

public byte[] pack()
            throws ISOException
Description copied from class: ISOMsg
pack the message with the current packager

Overrides:
pack in class ISOMsg
Returns:
the packed message
Throws:
ISOException

unpack

public int unpack(byte[] b)
           throws ISOException
Description copied from class: ISOMsg
unpack a message

Overrides:
unpack in class ISOMsg
Parameters:
b - - raw message
Returns:
consumed bytes
Throws:
ISOException

unpack

public void unpack(java.io.InputStream in)
            throws java.io.IOException,
                   ISOException
Overrides:
unpack in class ISOMsg
Throws:
java.io.IOException
ISOException

getFSDMsg

public FSDMsg getFSDMsg()

getString

public java.lang.String getString(int fldno)
Description copied from class: ISOMsg
Return the String value associated with the given ISOField number

Overrides:
getString in class ISOMsg
Parameters:
fldno - the Field Number
Returns:
field's String value

hasField

public boolean hasField(int fldno)
Description copied from class: ISOMsg
Check if a given field is present

Overrides:
hasField in class ISOMsg
Parameters:
fldno - the Field Number
Returns:
boolean indicating the existence of the field

dump

public void dump(java.io.PrintStream p,
                 java.lang.String indent)
Description copied from class: ISOMsg
dump the message to a PrintStream. The output is sorta XML, intended to be easily parsed.
Each component is responsible for its own dump function, ISOMsg just calls dump on every valid field.

Specified by:
dump in interface Loggeable
Overrides:
dump in class ISOMsg
Parameters:
p - - print stream
indent - - optional indent string

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class ISOMsg
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class ISOMsg
Throws:
java.io.IOException
java.lang.ClassNotFoundException

clone

public java.lang.Object clone()
Overrides:
clone in class ISOMsg

clone

public java.lang.Object clone(int[] fields)
Description copied from class: ISOMsg
Partially clone an ISOMsg

Overrides:
clone in class ISOMsg
Parameters:
fields - int array of fields to go
Returns:
new ISOMsg instance

merge

public void merge(ISOMsg m)
Description copied from class: ISOMsg
add all fields present on received parameter to this ISOMsg
please note that received fields take precedence over existing ones (simplifying card agent message creation and template handling)

Overrides:
merge in class ISOMsg
Parameters:
m - ISOMsg to merge

setResponseMTI

public void setResponseMTI()
Description copied from class: ISOMsg
sets an appropiate response MTI. i.e. 0100 becomes 0110
i.e. 0201 becomes 0210
i.e. 1201 becomes 1210

Overrides:
setResponseMTI in class ISOMsg

jPOS.org