Class BaseHeader
java.lang.Object
org.jpos.iso.header.BaseHeader
- All Implemented Interfaces:
Serializable, Cloneable, ISOHeader, Loggeable
- Direct Known Subclasses:
BASE1Header
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Allow object to be cloned.voiddump(PrintStream p, String indent) Return the destination address in this ISOHeader.intreturn the number of bytes in this ISOHeaderReturn the source address in this ISOHeader.booleanbyte[]pack()Return this header as byte array.voidsetAsciiEncoding(boolean asciiEncoding) voidsetDestination(String dst) Set the Destination address in this ISOHeader.voidSet the Source address in this ISOHeader.voidSwap the source and destination addresses in this ISOHeader (if they exist).intunpack(byte[] header) Create a new ISOHeader from a byte array.
-
Field Details
-
header
-
-
Constructor Details
-
BaseHeader
public BaseHeader()Default Constructor. Used by Class.forName.newInstance(...); -
BaseHeader
-
-
Method Details
-
clone
-
pack
-
unpack
-
getLength
-
setDestination
Description copied from interface:ISOHeaderSet the Destination address in this ISOHeader.- Specified by:
setDestinationin interfaceISOHeader
-
setSource
-
getDestination
Description copied from interface:ISOHeaderReturn the destination address in this ISOHeader. returns null if there is no destination address- Specified by:
getDestinationin interfaceISOHeader
-
getSource
-
swapDirection
Description copied from interface:ISOHeaderSwap the source and destination addresses in this ISOHeader (if they exist).- Specified by:
swapDirectionin interfaceISOHeader
-
dump
-
setAsciiEncoding
-
isAsciiEncoding
-