|
||||||||||
| 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
| Field Summary | |
|---|---|
protected byte[] |
header
|
| Constructor Summary | |
|---|---|
BaseHeader()
Default Constructor. |
|
BaseHeader(byte[] header)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Allow object to be cloned. |
void |
dump(PrintStream p,
String indent)
|
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. |
boolean |
isAsciiEncoding()
|
byte[] |
pack()
Return this header as byte array. |
void |
setAsciiEncoding(boolean asciiEncoding)
|
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[] header)
Create a new ISOHeader from a byte array. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] header
| Constructor Detail |
|---|
public BaseHeader()
public BaseHeader(byte[] header)
| Method Detail |
|---|
public Object clone()
ISOHeader
clone in interface ISOHeaderclone in class 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(String dst)
ISOHeader
setDestination in interface ISOHeaderpublic void setSource(String src)
ISOHeader
setSource in interface ISOHeaderpublic String getDestination()
ISOHeader
getDestination in interface ISOHeaderpublic String getSource()
ISOHeader
getSource in interface ISOHeaderpublic void swapDirection()
ISOHeader
swapDirection in interface ISOHeader
public void dump(PrintStream p,
String indent)
dump in interface Loggeablepublic void setAsciiEncoding(boolean asciiEncoding)
public boolean isAsciiEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||