Interface ISOHeader
- All Superinterfaces:
Cloneable, Serializable
- All Known Implementing Classes:
BASE1Header, BaseHeader
Represents the optional header portion of an ISO-8583 message frame.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this ISOHeader.Returns the destination address in this ISOHeader.intReturns the number of bytes in this ISOHeader when packed.Returns the source address in this ISOHeader.byte[]pack()Packs this header into a byte array.voidsetDestination(String dst) Sets the destination address in this ISOHeader.voidSets the source address in this ISOHeader.voidSwaps the source and destination addresses in this ISOHeader (if they exist).intunpack(byte[] b) Unpacks the header from a raw byte array.
-
Method Details
-
pack
-
unpack
Unpacks the header from a raw byte array.- Parameters:
b- raw bytes to parse- Returns:
- the number of bytes consumed
-
setDestination
Sets the destination address in this ISOHeader.- Parameters:
dst- the destination address
-
getDestination
Returns the destination address in this ISOHeader.- Returns:
- the destination address, or null if not set
-
setSource
-
getSource
-
getLength
int getLength()Returns the number of bytes in this ISOHeader when packed.- Returns:
- header length in bytes
-
swapDirection
void swapDirection()Swaps the source and destination addresses in this ISOHeader (if they exist). -
clone
-