|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.iso.header.BaseHeader
public class BaseHeader
| Constructor Summary | |
|---|---|
BaseHeader()
Default Constructor. |
|
BaseHeader(byte[] header)
Create a new Header from a byte array. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this Header. |
void |
dump(java.io.PrintStream p,
java.lang.String indent)
|
java.lang.String |
getDestination()
Return the destination address in this ISOHeader. |
int |
getLength()
return the number of bytes in this ISOHeader |
java.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[] header)
Create a new ISOHeader from a byte array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseHeader()
public BaseHeader(byte[] header)
| Method Detail |
|---|
public java.lang.Object clone()
clone in interface ISOHeaderclone in class java.lang.Objectpublic byte[] pack()
ISOHeader
pack in interface ISOHeaderpublic int unpack(byte[] header)
ISOHeader
unpack in interface ISOHeaderpublic int getLength()
ISOHeader
getLength in interface ISOHeaderpublic void setDestination(java.lang.String dst)
ISOHeader
setDestination in interface ISOHeaderpublic void setSource(java.lang.String src)
ISOHeader
setSource in interface ISOHeaderpublic java.lang.String getDestination()
ISOHeader
getDestination in interface ISOHeaderpublic java.lang.String getSource()
ISOHeader
getSource in interface ISOHeaderpublic void swapDirection()
ISOHeader
swapDirection in interface ISOHeader
public void dump(java.io.PrintStream p,
java.lang.String indent)
dump in interface Loggeable
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||