org.jpos.iso
Interface ISOHeader

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
BASE1Header, BaseHeader

public interface ISOHeader
extends Cloneable, Serializable

Author:
Eoin.Flood@orbiscom.com

Method Summary
 Object clone()
          Allow object to be cloned.
 String getDestination()
          Return the destination address in this ISOHeader.
 int getLength()
          return the number of bytes in this ISOHeader
 String getSource()
          Return the source address in this ISOHeader.
 byte[] pack()
          Return this header as byte array.
 void setDestination(String dst)
          Set the Destination address in this ISOHeader.
 void setSource(String src)
          Set the Source address in this ISOHeader.
 void swapDirection()
          Swap the source and destination addresses in this ISOHeader (if they exist).
 int unpack(byte[] b)
          Create a new ISOHeader from a byte array.
 

Method Detail

pack

byte[] pack()
Return this header as byte array.


unpack

int unpack(byte[] b)
Create a new ISOHeader from a byte array.

Returns:
The Number of bytes consumed.

setDestination

void setDestination(String dst)
Set the Destination address in this ISOHeader.


getDestination

String getDestination()
Return the destination address in this ISOHeader. returns null if there is no destination address


setSource

void setSource(String src)
Set the Source address in this ISOHeader.


getSource

String getSource()
Return the source address in this ISOHeader. returns null if there is no source address


getLength

int getLength()
return the number of bytes in this ISOHeader


swapDirection

void swapDirection()
Swap the source and destination addresses in this ISOHeader (if they exist).


clone

Object clone()
Allow object to be cloned.



Copyright © 1998-2012 jPOS.org. All Rights Reserved.