Package org.jpos.iso
Interface ISOHeader
-
- All Superinterfaces:
java.lang.Cloneable
,java.io.Serializable
- All Known Implementing Classes:
BASE1Header
,BaseHeader
public interface ISOHeader extends java.lang.Cloneable, java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
clone()
Allow object to be cloned.java.lang.String
getDestination()
Return the destination address in this ISOHeader.int
getLength()
return the number of bytes in this ISOHeaderjava.lang.String
getSource()
Return the source address in this ISOHeader.byte[]
pack()
Return this header as byte array.void
setDestination(java.lang.String dst)
Set the Destination address in this ISOHeader.void
setSource(java.lang.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(java.lang.String dst)
Set the Destination address in this ISOHeader.
-
getDestination
java.lang.String getDestination()
Return the destination address in this ISOHeader. returns null if there is no destination address
-
setSource
void setSource(java.lang.String src)
Set the Source address in this ISOHeader.
-
getSource
java.lang.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
java.lang.Object clone()
Allow object to be cloned.
-
-