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()
ISOHeader
public byte[] pack()
ISOHeader
public int unpack(byte[] header)
ISOHeader
public int getLength()
ISOHeader
public void setDestination(java.lang.String dst)
ISOHeader
setDestination
in interface ISOHeader
public void setSource(java.lang.String src)
ISOHeader
public java.lang.String getDestination()
ISOHeader
getDestination
in interface ISOHeader
public java.lang.String getSource()
ISOHeader
public void swapDirection()
ISOHeader
swapDirection
in interface ISOHeader
public void dump(java.io.PrintStream p, java.lang.String indent)
public void setAsciiEncoding(boolean asciiEncoding)
public boolean isAsciiEncoding()