public class BaseHeader extends java.lang.Object implements ISOHeader, Loggeable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
header |
| Constructor and Description |
|---|
BaseHeader()
Default Constructor.
|
BaseHeader(byte[] header) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Allow object to be cloned.
|
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.
|
boolean |
isAsciiEncoding() |
byte[] |
pack()
Return this header as byte array.
|
void |
setAsciiEncoding(boolean asciiEncoding) |
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.
|
public BaseHeader()
public BaseHeader(byte[] header)
public java.lang.Object clone()
ISOHeaderpublic byte[] pack()
ISOHeaderpublic int unpack(byte[] header)
ISOHeaderpublic int getLength()
ISOHeaderpublic void setDestination(java.lang.String dst)
ISOHeadersetDestination in interface ISOHeaderpublic void setSource(java.lang.String src)
ISOHeaderpublic java.lang.String getDestination()
ISOHeadergetDestination in interface ISOHeaderpublic java.lang.String getSource()
ISOHeaderpublic void swapDirection()
ISOHeaderswapDirection in interface ISOHeaderpublic void dump(java.io.PrintStream p,
java.lang.String indent)
public void setAsciiEncoding(boolean asciiEncoding)
public boolean isAsciiEncoding()